chanchungfat Posted October 9, 2009 Share Posted October 9, 2009 How to mute the alarm sound without acknowledge it? I've tried system.sound.play() and stop. Also tried alarm.strsSound by assigning a null wav file. But all doesn't work. Thanks Link to comment Share on other sites More sharing options...
AzeoTech Posted October 9, 2009 Share Posted October 9, 2009 If you want to stop it early, you can't use the built in sound parameter of the alarm. Instead, you should use system.sound.play() from the Fire event of each alarm to trigger the sound. Then you can use system.sound.stop() to manually stop it at any time. Link to comment Share on other sites More sharing options...
chanchungfat Posted October 12, 2009 Author Share Posted October 12, 2009 Thank you for reply. Yes, we did try the way suggested and two problems come: 1. We assign the "ding.wav" in the fire event and we do hear a "ding" when the alarm fires. But the "ding" comes with a great time lag. It lags more then 15 seconds. Code- system.sound.play("c:\windows\media\ding.wav") 2. A single "ding" is not exactly we want, a continuous "ding" is required. We add codes like this: Code- while(1) system.sound.play("c:\windows\media\ding.wav") delay(0.5) endwhile The system hangs after the first "ding". We can't proceed to test function system.sound.stop() because the system hangs at the first run. Something have we done wrong? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.