Timer program

J

Jacob Grover

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?
 
D

Dave Bass

Jacob said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,202
Messages
2,571,057
Members
47,663
Latest member
josh5959

Latest Threads

Top