The IDirectSound::GetSpeakerConfig method retrieves the speaker configuration.
HRESULT GetSpeakerConfig(
LPDWORD lpdwSpeakerConfig
);
DSSPEAKER_STEREO can be combined with one of the following values:
If the method succeeds, the return value is DS_OK.
If the method fails, the return value may be one of the following error values:
DSERR_INVALIDPARAM |
DSERR_UNINITIALIZED |
The value returned at lpdwSpeakerConfig may be a packed DWORD containing both configuration and geometry information. Use the DSSPEAKER_CONFIG and DSSPEAKER_GEOMETRY macros to unpack the DWORD, as in the following example:
if (DSSPEAKER_CONFIG(dwSpeakerConfig) == DSSPEAKER_STEREO)
{
if (DSSPEAKER_GEOMETRY(dwSpeakerConfig) ==
DSSPEAKER_GEOMETRY_WIDE)
{...}
}
Windows NT/2000: Requires Windows NT 4.0 SP3 or later.
Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
Header: Declared in dsound.h.
Import Library: Use dsound.lib.