-
Notifications
You must be signed in to change notification settings - Fork 13
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
Play sounds when devices connect/disconnect #22
Comments
Using something similar to this script: Connecting:
Disconnecting:
So, when Connected = true, we'd pause for about 0.5 sec, and play a sound if the State was anything but active. We'd always play a sound if Connected is false. |
The freedesktop sound theme has pretty good sounds we could use to play back. |
Note implemented exactly like the above. Note that we received a "Connected" signal even if the device was already connected, when we try to disconnect. The code also doesn't handle multiple devices being connected. |
This makes it easier to know if the speaker's volume is correctly set, if we connected properly, etc.
The "device-added" and "device-removed" in
sound-theme-freedesktop
are probably pretty good sounds to start with.The text was updated successfully, but these errors were encountered: