Timer program

I’ve been looking to enhance a timer program I’ve made. It’s extremely
simple so I want to add new features like maybe an alarm when the times
up, I’m going to try to download an audio file such as an mp3 for an
alarm, would there be any way to not only run the sounds on my computer
but every other computer that the program is installed on. I was just
going to create the file for the program then the sub file for sounds.
Is there any way to tidy that up?

Jacob Grover wrote:

I’ve been looking to enhance a timer program I’ve made. It’s extremely
simple so I want to add new features like maybe an alarm when the times
up, I’m going to try to download an audio file such as an mp3 for an
alarm, would there be any way to not only run the sounds on my computer
but every other computer that the program is installed on. I was just
going to create the file for the program then the sub file for sounds.
Is there any way to tidy that up?

Do you mean combine the MP3 file with the program? You could append your
MP3 file as data after END, or define it as a String within your
program. This will probably play havoc with your text editor though.
Better would be to convert the binary data to hex values. The pack and
unpack methods should help.

Dave

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs