If I want to write a C program with sound in the background or At the beginning of the program, can I do it? How?
I use the compiler DJGPP or Turbo C.
Do I need to create a library file?
The standard code has a single BELL having the code '7'. How to create a tune???
Please help!!!
ASCII Code for Sound?
There's actually a Beep function in windows.h that looks like:
Beep(hertz, duration) where duration is in milliseconds.
Just import windows.h and play around with it! To keep it in a decent range, anything less than 15000 hz should suffice.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment