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

Can I disable audio when alarm triggered? #205

Open
phamquoctrongnta opened this issue May 31, 2024 · 1 comment
Open

Can I disable audio when alarm triggered? #205

phamquoctrongnta opened this issue May 31, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@phamquoctrongnta
Copy link

As title, in my case I don't want to play audio when the alarm triggered.
Can I do it?
Thanks.
p/s: Sorry for my bad English
@gdelataillade

@gdelataillade
Copy link
Owner

Hi @phamquoctrongnta

No problem I guess you can just pass a silent audio as assetAudioPath. You can download this one here:
https://github.com/gdelataillade/alarm/blob/main/assets/blank.mp3

Another option is to pass any other audio (it's better if it's short so it's faster to load) and set the volume parameter to 0.0.

Let me know if it works for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants