• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps How can I get audio mixer output or playing music stream?

Gourmand

Lurker
I need get stereo PCM 44/16 audio in buffer but I still cannot find good way to do that. I can get "mic" stream but it is not exactly stereo - buffer has odd samples equal to even. It is 2 channels mono instead. Any solution for native Qt/C++ or Java code is acceptable for me. But it must work in all Android versions starting from 4.0.3. I need "what you hear" signal or at least "now playing music" stream. This must work with any music source. I look at tiny-ALSA but I'm not sure if it will solve my task. Should I distribute tiny-ALSA with my application or it is built in all Android devices? Or may be I can get just a stream like OSS /dev/dsp gives? I tried copy from /dev/snd/pcmC0D0 but without success. Any help appreciated.
 
Back
Top Bottom