当fm收音机正在播放时,无法启动AudioRecord / AudioTrack

时间:2014-07-03 10:36:07

标签: android audiorecord

_audioRecord = new AudioRecord(
                            AudioSource.VOICE_COMMUNICATION,
                            sampleRate,
                            AudioFormat.CHANNEL_IN_MONO,
                            AudioFormat.ENCODING_PCM_16BIT,
                            recBufSize);

_audioTrack = new AudioTrack(
                            AudioManager.STREAM_VOICE_CALL,
                            sampleRate,
                            AudioFormat.CHANNEL_OUT_MONO,
                            AudioFormat.ENCODING_PCM_16BIT,
                            playBufSize, AudioTrack.MODE_STREAM);

当fm电台应用程序未运行时,它运行良好。请帮助,谢谢

0 个答案:

没有答案