Click here to Skip to main content
13,591,914 members
Click here to Skip to main content
Add your own
alternative version


64 bookmarked
Posted 21 Jan 2001

Morse code. Some examples of how to produce sounds.

, 3 Apr 2001
Rate this:
Please Sign up or sign in to vote.
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.

 [Sample Image - 33K]

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.


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Alexander Fedorov
Web Developer SEO
Russian Federation Russian Federation
AlexF's Blog in Russian
Owner Spy competition analysis
Rating Burner Rating of blogs

You may also be interested in...


Comments and Discussions

GeneralGreat article! Pin
DrABELL16-Sep-09 15:31
memberDrABELL16-Sep-09 15:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Cookies | Terms of Use | Mobile
Web01-2016 | 2.8.180618.1 | Last Updated 4 Apr 2001
Article Copyright 2001 by Alexander Fedorov
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid