anyone know how to use trackBar to control volume
i wanna to anyone know how to use trackBar to control volume, there is a function waveOutSetVolume(int deviceID, int Volume),here how can i use deviceid,what is stands for, and i wanna to set the parameter volume by the value from trackBar, thus to control the volume by the value of trackBar,i write like:
waveOutSetVolume(0, this.trackBar1.Value * 65537); but it doesn't work,
anyone know how to use? thank u in advance.
|