/ Published in: R
URL: http://reboltutorial.com/blog/how-to-create-a-quick-alarm-application/
I was looking for a freeware for a quick sound alarm and surprisingly couldn’t any that was really quick to use. Naturally I thought about using Rebol and happily this is going to be really easy with the wait and the open sound:// command.
You can then create an alarm like this
alarm 5 or like this:
alarm 5 "attention"
Expand |
Embed | Plain Text
alarm: func[seconds message [string! unset!]][ wav: load %attention.wav sound-port: open sound:// wait seconds do [ insert sound-port wav wait sound-port close sound-port if (value? 'message) [ print message ] ] ]
You need to login to post a comment.
