Discussion:
[pulseaudio-discuss] inserting filter module into PA-ofono-bluez system
d***@rivaretica.com
2018-07-05 07:09:17 UTC
Permalink
We have a relatively stable working setup behaving like a Bluetooth
headset (PA 11.1 + ofono 1.21 + bluez).

When we try to insert a filter module (for example the original
module-virtual-sink.c) by simply loading the module, after few seconds
the module changes from "state: RUNNING" to "state: CORKED". Server log
output at level 4 is not saying much. The effect on the audio stream
during the few seconds of working varies from nothing (if using the
original module-virtual-sink.c) to clicking noise (if copy from src to
dst is omitted.)

Is there anything special with this setup that prevents sample virtual
sink module from stable running ?
Arun Raghavan
2018-07-07 04:11:48 UTC
Permalink
Post by d***@rivaretica.com
We have a relatively stable working setup behaving like a Bluetooth
headset (PA 11.1 + ofono 1.21 + bluez).
When we try to insert a filter module (for example the original
module-virtual-sink.c) by simply loading the module, after few seconds
the module changes from "state: RUNNING" to "state: CORKED". Server log
output at level 4 is not saying much. The effect on the audio stream
during the few seconds of working varies from nothing (if using the
original module-virtual-sink.c) to clicking noise (if copy from src to
dst is omitted.)
Is there anything special with this setup that prevents sample virtual
sink module from stable running ?
The default configuration that PulseAudio ships with loads module-suspend-on-idle which suspends all sinks if there is no stream connected (not counting filter sink connections).

Cheers,
Arun
d***@rivaretica.com
2018-07-07 19:35:56 UTC
Permalink
The odd thing in this case is that it does work, for about 4-5 seconds,
and then it gets CORKED. The stream runs all the time. If some
non-neutral processing is placed in the filter, it can be heard during
those 4-5 seconds. Then the stream continues without it. It seems that
somehow PA 'disqualifies' the module and kicks t out.
Post by Arun Raghavan
The default configuration that PulseAudio ships with loads module-suspend-on-idle which suspends all sinks if there is no stream connected (not counting filter sink connections).
Cheers,
Arun
Loading...