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::SetVolume() ]
[ next: Stop() ]
[ prev: SetPan() ]
public:
virtual bool __fastcall SetVolume( long pVolume );
TDX_SOUNDBUFFER::SETVOLUME()
[ component method ]
- Description
The
TDx_SoundBuffer::SetVolume
method
will
set
the
volume,
in
100ths
of
a
decibel,
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:
DSERR_CONTROLUNAVAIL
DSERR_GENERIC
DSERR_INVALIDPARAM
DSERR_PRIOLEVELNEEDED
- Parameters
Volume
The Volume parameter defines the volume, in 100ths of a decibel, to be set for the buffer.
- See Also
- Top
If you would like to submit additions or improvements to this page, click: darren_john_dwyer@hotmail.com.
|
|