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::Stop() ]
[ next: Unlock() ]
[ prev: SetVolume() ]
public:
virtual bool __fastcall Stop();
TDX_SOUNDBUFFER::STOP()
[ component method ]
- Description
The
TDx_SoundBuffer::Stop
method
will
halt
the
playing
of
the
sound
buffer.
The
play
position
of
a
secondary
buffer
will
be
set
to
the
next
sample
to
be
played.
Play
will
resume
from
where
the
buffer
was
stopped.
When
called
on
a
primary
buffer
utilizing
the
DSSCL_WRITEPRIMARY
cooperative
level,
the
buffer
will
be
stopped
and
the
play
position
reset
to
0.
This
is
done
because
most
sound
devices
can
only
play
from
the
beginning
of
the
primary
buffer.
For
other
cooperative
levels,
this
method
will
reverse
the
effects
of
TDx_SoundBuffer::Play()
being
called
on
a
primary
buffer.
That
is,
the
buffer
will
stop
whenever
there
are
no
secondary
buffers
playing.
The
buffer
will
not
actually
stop
playing
until
all
the
secondary
buffers
of
this
or
any
other
application
have
stopped.
If
the
method
call
fails,
the
OnError
event
will
be
triggered
with
one
of
the
following
values:
DSERR_INVALIDPARAM
DSERR_PRIOLEVELNEEDED
- See Also
- Top
If you would like to submit additions or improvements to this page, click: darren_john_dwyer@hotmail.com.
|
|