mt6735 听筒老化测试
时间:10-02
整理:3721RD
点击:
[DESCRIPTION]
实现工厂测试应用来进行听筒老化测试:即从听筒一直播放音频,并且调用打电话时音频参数
[SOLUTION]
1. am = (AudioManager)getSystEMService(Context.AUDIO_SERVICE);
am.setMode(AudioManager.MODE_IN_CALL);
2. setVolumeControlStream(AudioManager.STREAM_VOICE_CALL);
3.mp = new MediaPlayer()
mp.setAudioStreamType(AudioManager.STREAM_VOICE_CALL);
mp.setDataSource("/mnt/sdcard/testXXX.mp3);
mp.setLooping(true);
mp.prepare();
mp.start();
实现工厂测试应用来进行听筒老化测试:即从听筒一直播放音频,并且调用打电话时音频参数
[SOLUTION]
1. am = (AudioManager)getSystEMService(Context.AUDIO_SERVICE);
am.setMode(AudioManager.MODE_IN_CALL);
2. setVolumeControlStream(AudioManager.STREAM_VOICE_CALL);
3.mp = new MediaPlayer()
mp.setAudioStreamType(AudioManager.STREAM_VOICE_CALL);
mp.setDataSource("/mnt/sdcard/testXXX.mp3);
mp.setLooping(true);
mp.prepare();
mp.start();