FS#12153 - Put Elapsed and Offset in PCM buffer frames.
Opened by Michael Sevakis (MikeS) - Saturday, 11 June 2011, 23:28 GMT
Last edited by Michael Sevakis (MikeS) - Sunday, 28 August 2011, 08:44 GMT
Here we slice up PCM frames into about 1/20s chunks. Codecs set elapsed times and offset before the next PCM insert which associates those values with the audio data it subsequently commits to the buffer.
Codecs are modified only minimally so that they set elapsed/offset before outputting anything.
* Accurate position reporting of samples, especially when using the time index in an uncoventional way (as a sub-track indicator for instance).
* Timing is accurate through track duration regarless of pitch changes.
Now, this is still pretty prelimary. There will likely be short time-reporting glitches in the WPS when switching tracks. Crossfade is not properly converted so don't use it here!
I don't want to invest too much into the current way of doing mixing to accomodate a new buffer format. I'd like
Primarily I put this up early so that videogame music enthusiasts can enjoy the benefits.
Sunday, 28 August 2011, 08:44 GMT
Reason for closing: Accepted
Additional comments about closing: r30366 - with acceptable solution to annoying sticky wicket