by vb_elmar (3 Submissions)
Category: DirectX
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (4 Votes)
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 DeclarationsGetForegroundWindow