Morse code. Some examples of how to produce sounds.






4.64/5 (16 votes)
Jan 22, 2001

133952

2639
Several classes demonstrating how to fill audio buffer and how to produce sound using waveOut* API
This program demonstrates how to use the waveOut
APIs to produce sounds of different frequencies.
Two classes can play sounds asynchronously (with some differences in implementation), and one show works in plain
synchronous mode.
The sample program takes a string you supply, converts it into Morse code, and then plays this code. You can customize the frequency and duration of the sounds produced.
Using the asynchronous classes, it is possible to change frequency smoothly when sounds are playing, but sound quality is not very good.
This code was tested only on VC++ 6.0 and Windows 98.