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

Add sound effect #14

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

GreatWizard
Copy link
Contributor

@GreatWizard GreatWizard commented Sep 28, 2020

Close #9


Feature

Add sound effect (#14)

I add a simple audio tag with a switch.mp3 sound next to the canvas-wrapper.
Then I made a SoundUtil in order to play it many times and calls the SoundUtil in the key bottomOut function hook.

@temuulens
Copy link

Just tried it. Working but sound sample is bit harsh, sounds like typewriter.

@GreatWizard GreatWizard force-pushed the feat/sound-effect branch 2 times, most recently from 7b7346c to 4f39f37 Compare September 29, 2020 09:20
@crsnbrt
Copy link
Owner

crsnbrt commented Sep 29, 2020

I agree, works well, but this sound is a bit too much like a typewriter. Also, I don't think sounds should be added without a mute option.

@GreatWizard I'm going to take a deeper look at this soon but I think there should be a solution here that is a little more robust that possibly uses a config file to define a sound "profile" for a switch type that maybe defines different sounds for mods and allows some variation.

@GreatWizard
Copy link
Contributor Author

GreatWizard commented Sep 29, 2020

About the mute option. It's already a feature in browsers, all users can mute a tab when audio are detected by the browser

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.

Switch sound
3 participants