[pulseaudio-discuss] module-role-cork and mp3s

Mikhail Morfikov mmorfikov at gmail.com
Thu Aug 13 14:29:05 PDT 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On 2015-08-13 18:49, Georg Chini wrote:
> On 13.08.2015 14:58, Tanu Kaskinen wrote:
>> On Thu, 2015-08-13 at 10:50 +0200, Mikhail Morfikov wrote:
>>> I have two streams one phone and one video/audio, and when I set the
>>> following:
>>>
>>> load-module module-role-ducking trigger_roles=phone
>>> ducking_roles=music,video volume=60%
>>>
>>> and I start playing an mp3, the volume is lowered to 60% and that's
>>> fine. Each time a new mp3 is being played the volume doesn't change,
>>> which is also a good thing.
>>>
>>> There's another module module-role-cork and when it's enabled (also
>>> commenting out the line above), it acts a little bit strange. When I
>>> start the phone stream, the mp3 is muted, and that's expected, but
>>> when
>>> another mp3 starts to play, the sound appears.
>>>
>>> Should that happen?
>> Ideally that shouldn't happen, but currently we have a bit limited
>> support for managing corking. Currently applications are required to
>> cooperate when we want to cork them. module-role-cork sends a cork
>> request to an application, and the application will then obey that
>> request (or not, but in your case not obeying the request is not the
>> problem). To make this work on new streams too, module-role-cork should
>> send the cork request also when a new stream appears, which it
>> currently doesn't do. It could very well do that, so patches welcome!
>>
>> Sending a cork request after a new stream has appeared isn't quite
>> optimal, since the beginning of the stream may already hit the speakers
>> before the corking happens, but that would still be better than the
>> current behaviour.
>>
>> It would be good to have "server-side corking" that wouldn't require
>> cooperation from applications. That's a bit more complicated to
>> implement.
>>
> Hi,
> 
> you could try if my patches
> http://thread.gmane.org/gmane.comp.audio.pulseaudio.general/23189
> solve the problem because the patches combine module-role-cork
> and module-role-ducking (and I believe they should mute/cork a stream
> when it appears).
> 
> Regards
>             Georg
> _______________________________________________
> pulseaudio-discuss mailing list
> pulseaudio-discuss at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss

I've tested the patches, but nothing has changed.
-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJVzQweAAoJEM0EaBB3G2UgOX8QAOn8DyLdxiL2WfxLF1iqrMjX
qw9dqBpXMxZARF0duOpCsQIMOgG+PIL+nLIrGh7YKI4phX2LoHSa7tkmH2XLl4AR
Iokm+/FWV9DxpHueBYAO6r9O+RHHQpFUzauWYfhDYowCSfXTx2Va2L02YD7Ns042
ImIDfJ1AnPLXxWl+nlEA9qdReSquUDncHa69mUgGeFKE5YElgiHvGaYHbcDkHWKE
F/CwvZTjJXjZVvi1+vhMf0ByprETesbGK7dNTZdr1AVmCEj1RCZaf1hpxVZ5CvYH
pzDa2YhH23PC6SHCUKatPVrUgDbMyBTD6yNrlUnj08XGHg+nZ0X3IWp7Xsh2LT5o
fsIh67Xqqul/tdNNm+rSZtCh/FU6N73S2ENaXkb83TxwRgY11u9WWUc02lZ+UsFy
XkCmRbkLmQNdSE8k66aTXkFEXxzwtJHxW1ttZi1gsrAQ/ev26sKjmIqRaqU2L/op
DL5st0g5jIDhgfYo6x8c60HCsYkqBtDIvz4GhAsCNOM2b6gf0mP2Bk8E7y0m8G2Y
OS2mTIXZEg+nbf1vP1UD+n8hNiDAcvuSk4Vj85cuNclMRyzZw+TF3Khksvo7Me6T
B+kwyC32WCmmH81Dek2IyxLw38Bwkp+8rOraFg3nHp7UKUe99JhhtT+TtxmzWZtp
EwwnYO2nHHHbLDvZt/P+
=OSKl
-----END PGP SIGNATURE-----


More information about the pulseaudio-discuss mailing list