How to mute audio player on receiving a call
You are listening to music, and you receive a call. You want your music player to be muted so that you could pick up the call without having to pause the music player. SFLphone and Pulseaudio can do that!
Muting audio applications
Of course, SFLphone must be set to use Pulseaudio. Besides, an extra Pulseaudio module has to be installed: module-cork-music-on-phone. This module allows Pulseaudio to mute connected audio streams when a new stream of type Phone is created. SFLphone creates a new stream on receiving a call, making a new call, or dialing. As soon as one of those actions is performed, music player streams will be muted (the songs is not paused though). When the phone stream is destroyed, the audio player stream is resumed. So, when your hang up your call, the music will automatically resume.
Installing module-cork-music-on-phone
Edit Pulseaudio configuration file:
/etc/pulse/default.pa
Comment out the line that loads the module:
### Cork music streams when a phone stream is active
load-module module-cork-music-on-phone
Restart Pulseaudio and you are done. If it is configured as per-user session:
pulseaudio --kill
pulseaudio --start
- Login to post comments