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::OpenStream() ]
[ next: Play() ]
[ prev: Lock() ]
public:
virtual bool __fastcall OpenStream( AnsiString pFileName );
TDX_SOUNDBUFFER::OPENSTREAM()
[ component method ]
- Description
The
OpenStream
method
will
open
an
existing
.wav
file
for
reading
or
writing.
This
method
will
automatically
fill
the
internal
WAVEFORMATEX
structure
referenced
by
the
StreamFormat
property
of
this
component
with
the
format
data
of
the
.wav
file
being
opened.
Once
opened
the
file
can
be
read
with
TDx_SoundBuffer::ReadFromStream()
or
written
using
TDx_SoundBuffer::WriteToStream().
Once
all
data
has
been
read
from
or
written
to
the
stream,
close
the
stream
using
TDx_SoundBuffer::CloseStream()
When
the
stream
is
open,
the
TDx_SoundBuffer::StreamIsOpen
property
will
be
true.
If
the
method
call
fails,
the
OnError
event
will
be
triggered
with
one
of
the
following
values:
TDX_BADPARAMS
TDX_ERROR
- Parameters
FileName
The FileName parameter defines the path and filename of the exisitng .wav file which is to be opened.
- See Also
- Top
If you would like to submit additions or improvements to this page, click: darren_john_dwyer@hotmail.com.
|
|