gdelataillade/alarm

Can I disable audio when alarm triggered?

Opened this issue · 1 comments

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

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.