audio_process_extern seems to give me 1/2 the data.... #722
-
I am intercepting the decoded mp3 data to do some FFT work with it... however I have noticed it seems to be sending 1/2 the data... I tried this to test: its sending me len == 1152 every 25ms approx, so that is almost exactly the 44100 sample rate of the mp3 being played, however I would expect 2X that data as its stereo, and I have set forcemono to false, what am I not understanding? did I miss something? The MP3 is also from a stream online.... Richard. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Exactly, if the source is a stereo transmitter, the right/left channels are transmitted alternately. |
Beta Was this translation helpful? Give feedback.
Yes: numSamples = len * audio.getChannels()