IDirectSound3DBuffer8::GetConeOutsideVolume Method
[The feature associated with this page, DirectSound, is a legacy feature. It has been superseded by WASAPI and Audio Graphs. Media Casting have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use Media Casting instead of DirectSound, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]
The GetConeOutsideVolume method retrieves the volume of the sound outside the outside angle of the sound projection cone.
Syntax
HRESULT GetConeOutsideVolume(
LPLONG plConeOutsideVolume
)
Parameters
- plConeOutsideVolume
Address of a variable that receives the cone outside volume for this buffer.
Return Value
If the method succeeds, the return value is DS_OK. If the method fails, the return value may be DSERR_INVALIDPARAM.
Remarks
Volume levels are expressed as attenuation, in hundredths of a decibel. Allowable values are between DSBVOLUME_MAX (no attenuation) and DSBVOLUME_MIN (silence). The default value is DS3D_DEFAULTCONEOUTSIDEVOLUME (no attenuation). These values are defined in Dsound.h. DirectSound does not support amplification.
Requirements
Header: Declared in DSound.h.
Library: Use Dsound3d.dll.