Hello to all! Captcha the entire outgoing audio stream from android using android.media.audiofx.Visualizer
At the same time, everything works well on one phone, but on the other (when played with its own player written in C), the audio stream does not kapchitsya (everything is played correctly), but
onFftDataCapture(Visualizer visualizer, byte[] fft, int samplingRate)
all the time returns an array fft [] = {0,0,0....0,0}
- 1024 zeros, regardless of what is playing or not playing.
If someone knows the possible reason for the incorrect work please write. The phone on which the new with android 4.2 does NOT work, on 2.3 4.1 and 4 everything works.