Welcome to
www.tdxlibrary.org
Home of the
the TDx_Library...
"RAD DirectX"
for
C++ Builder
...
|
TDx_Sound_Library v2.00 Component Reference
|
|
[ TDx_Sound3DBuffer::SetConeOutsideVolume() ]
[ next: SetMaxDistance() ]
[ prev: SetConeOrientation() ]
public:
virtual bool __fastcall SetConeOutsideVolume( long pConeOutsideVolume, dword pApply );
TDX_SOUND3DBUFFER::SETCONEOUTSIDEVOLUME()
[ component method ]
- Description
The
TDx_Sound3DBuffer::SetConeOutsideVolume
method
will
set
the
volume,
in
100ths
of
a
decibel,
for
the
outside
cone
of
the
sound
buffer.
This
volume
is
expressed
as
an
attenuation
value
and
is
subtracted
from
the
normal
volume
levels.
The
minimum,
maximum
and
default
cone
outside
volumes
are
defined
in
the
dsound.h
DSBVOLUME_MIN,
DSBVOLUME_MAX
and
DS3D_DEFAULTCONEOUTSIDEVOLUME
members
as
-10000,
0
and
0
respectively.
If
the
method
call
fails,
the
OnError
event
may
be
triggered
with
the
following
value:
DSERR_INVALIDPARAM
- Parameters
ConeOutsideVolume
The ConeOutsideVolume parameter defines the volume, in 100ths of a decibel, to which the outside cone of the sound buffer is to be set.
Apply
The Apply parameter defines flags indicating whether the setting should be applied immediately.
The described effect applies when the flag is set.
DS3D_DEFERRED
Wait until TDx_Sound3DListener::CommitDeferredSettings() is called before committing the settings.
This allows several changes to be made before recalculating.
DS3D_IMMEDIATE
Apply the settings immediately.
The 3D coordinates of all 3D sound buffers will be recalculated.
- See Also
- Top
If you would like to submit additions or improvements to this page, click: darren_john_dwyer@hotmail.com.
|
|