VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

A Simple Sine Wave Generator (DirectSound)

vb_elmar  (3 Submissions)   DirectX   Intermediate   Wed 3rd February 2021

Please Vote. Sine wave generator 3390 Byte. Simple code. Calculates a sine wave and plays the wave from Ram - no wave file *.wav. You can change the frequency with a slider. There is no "crackling sound" in the loudspeaker when changing the frequency or volume.

Inputs
Methods: DSB(0).SetFrequency DSB(0).SetVolume DSB(0).SetPan DSB(0).Play DS.CreateSoundBuffer

API Declarations
GetForegroundWindow

Rate A Simple Sine Wave Generator (DirectSound) (5(5 Vote))

Download A Simple Sine Wave Generator (DirectSound)

A Simple Sine Wave Generator (DirectSound) Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters