Microsoft DirectX 8.0 (Visual Basic)

DirectMusicAudioPath8.SetVolume

Sets the audio volume on the path.

object.SetVolume(lVolume As Long, lDuration As Long)

Parts

object
Resolves to a DirectMusicAudioPath8 object.
lVolume
Value that specifies the attenuation, in hundredths of a decibel.
lDuration
Value that specifies the time, in milliseconds, over which the volume change takes place. A value of 0 ensures maximum efficiency.

Error Codes

If the method fails, an error is raised.