Notification sounds.

Game development with Board Game Arena Studio
Post Reply
User avatar
RicardoRix
Posts: 2548
Joined: 29 April 2012, 23:43

Notification sounds.

Post by RicardoRix »

I normally don't have my sound on.
It seems whenever a notification is sent a sound is played.

Slight problem is that I might send 3 notifications with 1 player action. Is there any way to subdue the playing of a sound alert with a notification?

I would have thought if there was no message in the notification then the sound wouldn't play, but then again I'm sure there are instances where this would be required, so then... is there a mechanism to control this behaviour?

I couldn't actually find any documentation on when sounds are being played and for what reason.
User avatar
shadowphiar
Posts: 124
Joined: 01 January 2017, 16:07

Re: Notification sounds.

Post by shadowphiar »

I am also interested in the details of when and why sounds gets played. At the moment the docs don't mention sound at all - it would be nice to have some better control over this, and I could see some room for extension as well. e.g. shuffling a deck, dealing a card, placing a wooden token, throwing dice - these should all sound different really.

I noticed that some games, if you reload them, it plays the "whoosh" sound many times within a few seconds while the screen is being setup, which is definitely something I'd want to avoid doing accidentally. Perhaps the sound is triggered by SlideToObject rather than the notification itself?
User avatar
paramesis
Posts: 398
Joined: 28 April 2020, 05:00

Re: Notification sounds.

Post by paramesis »

I happily discovered that notifications do not create log entries or play a sound if the string is empty. I found these empty string notifications to be a much cleaner way to show a sequence of automated steps a player should be able to follow, rather than a rickety stack of JS timeouts. The "your turn" sound only plays if you become an active player after someone else has been active, or if you are set to active in a multiple active player state.

As for the barrage of notification log sounds when the page is refreshed or an active game is loaded or refreshed - that occurs on every game I've observed to varying degrees depending on how detailed the log messages are, and I find it a minor downside to turn based games here. I turn sounds off when going through tables where it's my turn because that helps the pages load faster as well. I would advocate addressing that at a platform level by making a suggestion and lobbying admins rather than hacking together a one-off solution that will only affect your game.
Post Reply

Return to “Developers”