65.9K
CodeProject is changing. Read more.
Home

Frequency Generator shows how to work with WaveOut function.

starIconstarIconstarIconstarIcon
emptyStarIcon
starIcon

4.32/5 (15 votes)

Apr 5, 2004

viewsIcon

78563

downloadIcon

4625

Version 1.0 (Release)

Introduction

This program was created in order to substitute laboratory frequency generator. It shows how to use API function - WavOut for playing sound with different frequencies in the range 1 Hz...20000 Hz (not all sound cards support so high frequencies), different amplitudes and phase shifts. The program is created in C++ Builder 5 platform. In future, I am planning to add complex signal generation supporting, amplitude, frequency and phase modulation. All new versions with source code will be available here. In this program, you also can find an example on how to extract the icon with different sizes from an exe or DLL file (ExtractIconEx function). With any remarks or wishes, you can write me to member@one.lv.

Sample screenshot


And this is a new version with channels division support:

Sample screenshot