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

Feature: Sound for match found #3216

Merged

Conversation

DotNetSimon
Copy link
Contributor

@DotNetSimon DotNetSimon commented Jun 25, 2024

Added a new sound when the match-found notification triggers.
It is like a simple beep-beep-beep-beep race start sound, not too intrusive but clear.

  • Added notification to enable/disable it (on by default).

  • Added tests for sound playing as with other sounds.

Manual tests done:
✅ Check labels/checkboxes are ok in English.
✅ Check checkbox functions (on/off)
✅ Check sound plays when match is found
[ ] Check default settings show correctly in settings - notifications window (not sure how to reset settings...)

Not sure how to add all the translations? Used the same words as for the "Match Found" string, so it should be easy to add these.

Fixes #2984

@DotNetSimon DotNetSimon changed the title Feature/sound for match found Feature: Sound for match found Jun 25, 2024
Sheikah45
Sheikah45 previously approved these changes Jun 26, 2024
@Sheikah45
Copy link
Member

You can check the default settings by just renaming your client.prefs file

@BlackYps
Copy link
Collaborator

Someone found a nice sound here: #2984
We should use that

- Labels and checkboxes. Added disabled+Selected 'Display Notification When Match Found' since it should always remain on.
@Sheikah45 Sheikah45 force-pushed the feature/sound-for-match-found branch from 738cb6c to b7a19bd Compare June 26, 2024 10:47
@Sheikah45
Copy link
Member

Right now the tests are failing because the notificationPrefs object wasn't added to the test.

Additionally the if check around the playMatchSound is a little redundant since it checks inside the audio service

@DotNetSimon
Copy link
Contributor Author

Someone found a nice sound here: #2984 We should use that

I've used this new sound. I think it might be more intrusive/disruptive than the one I was using before but if anyone asks I'll send them to you 👍

@DotNetSimon
Copy link
Contributor Author

Right now the tests are failing because the notificationPrefs object wasn't added to the test.

Additionally the if check around the playMatchSound is a little redundant since it checks inside the audio service

Fixed both.

- Removed superfluous check
- Added audioService mock to the test, making them pass.
- Renamed the preference to be more in line with the existing values.
@DotNetSimon
Copy link
Contributor Author

@BlackYps can you try with that sound? It is quite loud and it will scare people shitless when it suddenly blares after 30 minutes of not paying attention :p

The sound I used originally is more kind to the ears.

https://pixabay.com/sound-effects/countdown-sound-effect-8-bit-151797/

It's Pixabay which we already use.

@DotNetSimon
Copy link
Contributor Author

I've reused the sound from Warren that was lowered by 8db and it's pretty good now. Let me know if there's anything else to adjust @Sheikah45

@Sheikah45 Sheikah45 merged commit ff1b47c into FAForever:develop Jun 28, 2024
2 checks passed
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.

Better alerts when a game is found
4 participants