Android Question Using AudioStreamer with Android Emualtor - is it possible?

jimlocigno

New Member
Licensed User
Longtime User
I have an app that I am writing that uses the AudioStreamer - it works fine on a real device. However I would like to at least test some of my code changes on the emulator. When I do that I get negative array exception on this line: streamer1.Initialize("streamer1",mSampleRate1, mMono1, mBitRate1, streamer1.VOLUME_SYSTEM). To me this implies that the emulator can't do audio - even though I created an AVD with Audio Play and record support?

I have searched google and get conflicting results if it is even possible to test the audio on the emulator? I don't actually have TO RECORD anying - even if it would just 'THINK' it's recording and let me continue my code that would great.

Thanks
Jim
 

stevel05

Expert
Licensed User
Longtime User
Try using different sample and bit rates, not all devices (including the emulator) will support all options. It may only work in stereo for instance, or at 44100.
 
Upvote 0
Top