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

Handling notification sounds #11

Open
arnaudjuracek opened this issue Apr 18, 2016 · 2 comments
Open

Handling notification sounds #11

arnaudjuracek opened this issue Apr 18, 2016 · 2 comments

Comments

@arnaudjuracek
Copy link

arnaudjuracek commented Apr 18, 2016

First of all : you rock, this utility is gonna be awesome.

Now my suggestion : currently the utility auto-pauses the player when any sound is played elsewhere. The problem being that when receiving a notification on —saying— Facebook on Chrome, the player auto-pauses as well.

A better solution could be to trigger the auto-pause only after a certain amount of time, so that short sounds like notifications won't trigger it.

Another solution could be to fadeOut the player's volume during a certain amount of time, then pauses it if the sound that trigger the event is still playing (or fadeIn it again if the sound is not playing anymore).
Like this, the utility should reduce the volume during the time of a notification so you can hear it, or fadeOut and then pauses your player if the sound is too long to be a notification sound.

@arnaudjuracek arnaudjuracek changed the title handling notification sounds Handling notification sounds Apr 18, 2016
@choco
Copy link

choco commented Dec 28, 2016

Just wanted to add that if I'm not mistaken, OSX notification sound is produced by a system process with other audio effects, it would probably be wise to ignore sound coming from that process when dealing with auto pausing.

@stewartadam
Copy link

Came here to post the same - even simpler than process exclusions, it would be nice to have a customizable timeout for the auto-pause so that <2s audio from notification chimes doesn't prompt a quick pause-unpause cycle.

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

No branches or pull requests

3 participants