Hi there,
I had a look at your code. I think what's going on here is that once you add the audio the timecode resets to zero since you didn't specify an audio offset. Thus, the clip starts at zero since the audio starts at zero.
What you're missing is the metadata for the audio. You need to tell the audio to start at 2:15 as well. I was able to modify your code to get this to work.
You need to add the following line:
string audioMetaData = "
6480000";
The audio sample offset is computed by the following:
135 seconds (ie 2:15) * 48000 Hz = 6480000
Then when you create the audio clip format, you need to add the metadata as in the line below:
WireTapAudioFormat audio_format( numSamples, 16, 1, 48000, WireTapClipFormat::FORMAT_DL_AUDIO_INT16_LE(), audioMetaData.c_str() );
Now when you do the wiretap_get_clip_format it should show the timecode as 2:15.
Hope this helps. Please let me know if you have problems.
Cheers.