Hi guys,
I think I've discovered a problem with AudioConverter when applying a channel map to interleaved stereo audio formats, and would love someone to look over my shoulder and see if I am in fact just doing something stupid.
If I have an interleaved 16-bit stereo format (used for input and output), and apply a channel map to the converter of the form {0,0} or {1,1}, then the output seems to contain the wrong input frames.
For example, if I fill the (interleaved) input buffer with monotonically incrementing integers {0,1,2,3,4,5,6...}, then were I to use a channel map with {0,0} - that is, replicate the left input channel in both output channels - then I'd expect to see: {0,0,2,2,4,4,6,6,...}.
Instead, the audio converter gives {0,0,1,1,2,2,3,3,...}, resulting in half-rate audio.
The problem doesn't occur if I switch to using non-interleaved formats.
Would someone be able to have a quick look and make sure I'm not embarrassing myself before I submit a radar?
Cheers, Michael
-- Michael Tyson | atastypixel.com
Audiobus. Live, app-to-app audio streaming is here!
|