Fastest way to release pulseaudio sink to allow another application access
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I need to convenience switch the audio sink ( USB DAC ) between pulseaudio and a high-res proprietary music render that uses direct ALSA card access. Some background; two applications - a Bluetooth AD2P streamer ( hence pulseaudio ) and a network based HiRes Audio streamer. Both can be "connected" at the same time but only one will render audio. Pressing play on one, pauses the other and takes the sound sink and visa-vera. I have this all working but when switching from the proprietary network application to bluetooth the change over takes 5 seconds+.
Example: 1) music is being streamed via Bluetooth ( bluez5.48)/pulse audio 9.0 2) User decides he wants to listen to a DSD or something. Press play on his tablet etc. 3) The embedded Hi-res application gets notified of a play request and starts to teardown the Bluetooth side 4) Bluetooth incoming gets paused and pasuspender grabs the audio sink 5) Hi-res app detects the sink is free, bolts up and starts to stream the users DSD.
As mentioned it all works. However pasuspender takes almost 5 seconds to secure/free the audio sink; thi sis just too long. Any ideas.
To summarise, I need a quick and reliable way to take ownership of a pulseaudio sink need by an indepedant application.
Thanks.
linux pulseaudio bluez
New contributor
add a comment |Â
up vote
0
down vote
favorite
I need to convenience switch the audio sink ( USB DAC ) between pulseaudio and a high-res proprietary music render that uses direct ALSA card access. Some background; two applications - a Bluetooth AD2P streamer ( hence pulseaudio ) and a network based HiRes Audio streamer. Both can be "connected" at the same time but only one will render audio. Pressing play on one, pauses the other and takes the sound sink and visa-vera. I have this all working but when switching from the proprietary network application to bluetooth the change over takes 5 seconds+.
Example: 1) music is being streamed via Bluetooth ( bluez5.48)/pulse audio 9.0 2) User decides he wants to listen to a DSD or something. Press play on his tablet etc. 3) The embedded Hi-res application gets notified of a play request and starts to teardown the Bluetooth side 4) Bluetooth incoming gets paused and pasuspender grabs the audio sink 5) Hi-res app detects the sink is free, bolts up and starts to stream the users DSD.
As mentioned it all works. However pasuspender takes almost 5 seconds to secure/free the audio sink; thi sis just too long. Any ideas.
To summarise, I need a quick and reliable way to take ownership of a pulseaudio sink need by an indepedant application.
Thanks.
linux pulseaudio bluez
New contributor
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I need to convenience switch the audio sink ( USB DAC ) between pulseaudio and a high-res proprietary music render that uses direct ALSA card access. Some background; two applications - a Bluetooth AD2P streamer ( hence pulseaudio ) and a network based HiRes Audio streamer. Both can be "connected" at the same time but only one will render audio. Pressing play on one, pauses the other and takes the sound sink and visa-vera. I have this all working but when switching from the proprietary network application to bluetooth the change over takes 5 seconds+.
Example: 1) music is being streamed via Bluetooth ( bluez5.48)/pulse audio 9.0 2) User decides he wants to listen to a DSD or something. Press play on his tablet etc. 3) The embedded Hi-res application gets notified of a play request and starts to teardown the Bluetooth side 4) Bluetooth incoming gets paused and pasuspender grabs the audio sink 5) Hi-res app detects the sink is free, bolts up and starts to stream the users DSD.
As mentioned it all works. However pasuspender takes almost 5 seconds to secure/free the audio sink; thi sis just too long. Any ideas.
To summarise, I need a quick and reliable way to take ownership of a pulseaudio sink need by an indepedant application.
Thanks.
linux pulseaudio bluez
New contributor
I need to convenience switch the audio sink ( USB DAC ) between pulseaudio and a high-res proprietary music render that uses direct ALSA card access. Some background; two applications - a Bluetooth AD2P streamer ( hence pulseaudio ) and a network based HiRes Audio streamer. Both can be "connected" at the same time but only one will render audio. Pressing play on one, pauses the other and takes the sound sink and visa-vera. I have this all working but when switching from the proprietary network application to bluetooth the change over takes 5 seconds+.
Example: 1) music is being streamed via Bluetooth ( bluez5.48)/pulse audio 9.0 2) User decides he wants to listen to a DSD or something. Press play on his tablet etc. 3) The embedded Hi-res application gets notified of a play request and starts to teardown the Bluetooth side 4) Bluetooth incoming gets paused and pasuspender grabs the audio sink 5) Hi-res app detects the sink is free, bolts up and starts to stream the users DSD.
As mentioned it all works. However pasuspender takes almost 5 seconds to secure/free the audio sink; thi sis just too long. Any ideas.
To summarise, I need a quick and reliable way to take ownership of a pulseaudio sink need by an indepedant application.
Thanks.
linux pulseaudio bluez
linux pulseaudio bluez
New contributor
New contributor
New contributor
asked 4 mins ago
ed trx850
1
1
New contributor
New contributor
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
ed trx850 is a new contributor. Be nice, and check out our Code of Conduct.
ed trx850 is a new contributor. Be nice, and check out our Code of Conduct.
ed trx850 is a new contributor. Be nice, and check out our Code of Conduct.
ed trx850 is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f478749%2ffastest-way-to-release-pulseaudio-sink-to-allow-another-application-access%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password