Welcome to
www.tdxlibrary.org
Home of the
the TDx_Library...
"RAD DirectX"
for
C++ Builder
...
|
TDx_Sound_Library v2.00 Component Reference
|
|
[ TDx_SoundBuffer::GetVolume() ]
[ next: Lock() ]
[ prev: GetStatus() ]
public:
virtual bool __fastcall GetVolume( long* pVolume );
TDX_SOUNDBUFFER::GETVOLUME()
[ component method ]
- Description
The
TDx_SoundBuffer::GetVolume
method
will
return
the
volume,
in
100ths
of
a
decibel,
currently
set
for
the
sound
buffer.
The
minimum
and
maximum
volumes
are
defined
in
the
dsound.h
DSBVOLUME_MIN
and
DSBVOLUME_MAX
members
as
-10,000
and
0
respectively.
Minimum
volume
indicates
the
sound
is
attenuated
by
100
decibels
while
the
maximum
volume
represents
the
original
unadjusted
volume
of
the
sound.
If
the
method
call
fails,
the
OnError
event
will
be
triggered
with
one
of
the
following
values:
TDX_BADPARAMS
DSERR_CONTROLUNAVAIL
DSERR_INVALIDPARAM
DSERR_PRIOLEVELNEEDED
- Parameters
Volume
The Volume parameter will reference the volume, in 100ths of a decibel, of the buffer if this method returns successfully.
- See Also
- Top
If you would like to submit additions or improvements to this page, click: darren_john_dwyer@hotmail.com.
|
|