Conversation
MediaRecorder produces a "chime" sound on state changes (e.g. on the stop and start of recordings). Some versions of Android use STREAM_SYSTEM to produce the sound, but others such as version 4.2.1 on the Galaxy Nexus use STREAM_RING. This patch silences the ringer during recording transitions in order to prevent the "chime" sound from being heard on each RestartRecording method call on relevant Android versions.
|
This patch should theoretically not be necessary when The |
|
Yes. I've found that on different devices MediaRecorder uses different streams. That's why Solo+Mute method was chosen. But if you confirm that it doesn't work on newer devices and your patch fixes this issue, let me know what exact device is it and of course your patch will be merged to upstream. |
|
The It's important to note that this patch is only a partial solution, fixing the issue only for those devices whose |
MediaRecorder produces a "chime" sound on state changes (e.g. on the
stop and start of recordings). Some versions of Android use
STREAM_SYSTEM to produce the sound, but others such as version 4.2.1 on
the Galaxy Nexus use STREAM_RING. This patch silences the ringer during
recording transitions in order to prevent the "chime" sound from being
heard on each RestartRecording method call on relevant Android versions.