Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve compatibilty with BlueALSA #123

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

borine
Copy link

@borine borine commented Mar 28, 2022

Allow to use apulse with Bluetooth devices using BlueALSA (https://github.com/Arkq/bluez-alsa)

borine added 4 commits March 28, 2022 16:56
Once in state SND_PCM_STATE_DISCONNECTED an ALSA pcm handle cannot
be recovered; the only valid operation is to close it. This commit
closes the handle, then attempts to re-open the same device. This
allows temporary disconnections to be recovered (eg some devices
when resuming from suspend require this).
Sending silence / dropping recieved frames when the stream is
corked needlessly wastes battery charge for bluetooth devices.
Limit the silence/drop time to 10 seconds, after which the pcm is
closed; then re-open the pcm when the stream is uncorked.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant