Welcome to
www.tdxlibrary.org
Home of the
the TDx_Library...
"RAD DirectX"
for
C++ Builder
...
|
TDx_Sound_Library v2.00 Component Reference
|
|
[ TDx_Sound::GetSpeakerConfig() ]
[ next: Internal_DSEnumerateCallback() ]
[ prev: GetCaps() ]
public:
virtual bool __fastcall GetSpeakerConfig( dword* pSpeakerConfig );
TDX_SOUND::GETSPEAKERCONFIG()
[ component method ]
- Description
The
TDx_Sound::GetSpeakerConfig
method
will
return
the
current
speaker
configuration
settings.
As
the
result
may
be
a
packed
DWORD
when
DSSPEAKER_STEREO
is
returned,
use
the
following
predefined
macros
to
extract
the
correct
configuration
and
geometry.
DSSPEAKER_CONFIG(SpeakerConfig)
DSSPEAKER_GEOMETRY(SpeakerConfig)
If
the
method
call
fails,
the
OnError
event
will
be
triggered
with
one
of
the
following
values:
TDX_BADPARAMS
DSERR_INVALIDPARAM
DSERR_UNINITIALIZED
- Parameters
SpeakerConfig
The SpeakerConfig parameter will reference flags defining the current speaker configuration settings if this method returns successfully.
The described effect applies when the flag is set.
DSSPEAKER_5POINT1
Surround sound speakers are being used with a subwoofer.
DSSPEAKER_GEOMETRY_MAX
The stereo speakers are placed such as to have an arc of 180 degrees.
DSSPEAKER_GEOMETRY_MIN
The stereo speakers are placed such as to have an arc of 5 degrees.
DSSPEAKER_GEOMETRY_NARROW
The stereo speakers are placed such as to have an arc of 10 degrees.
DSSPEAKER_GEOMETRY_WIDE
The stereo speakers are placed such as to have an arc of 20 degrees.
DSSPEAKER_HEADPHONE
Headphones are being used.
DSSPEAKER_MONO
A single speaker is being used.
DSSPEAKER_QUAD
Quadraphonic speakers are being used.
DSSPEAKER_STEREO
Stereo speakers are being used.
This is the default value.
DSSPEAKER_SURROUND
Surround sound speakers are being used.
- See Also
- Top
If you would like to submit additions or improvements to this page, click: darren_john_dwyer@hotmail.com.
|
|