android 音量调节时,嘟 的 发声位置

在VolumePanel.java中,onVolumeChanged方法发送MSG_PLAY_SOUND消息。接收到消息之后,调用onPlaySound(msg.arg1, msg.arg2);方法。

就在这个方法中:
                ToneGenerator toneGen = getOrCreateToneGenerator(streamType);
                    toneGen.startTone(ToneGenerator.TONE_PROP_BEEP, BEEP_DURATION);
                    sendMessageDelayed(obtainMessage(MSG_STOP_SOUNDS), BEEP_DURATION * 2);


你可能感兴趣的:(android,发声)