1998-06-14 08:11:50 -04:00
|
|
|
\section{\class{wxWave}}\label{wxwave}
|
|
|
|
|
|
|
|
This class represents a short wave file, in Windows WAV format, that
|
2000-03-17 12:59:56 -05:00
|
|
|
can be stored in memory and played. Currently this class is implemented
|
|
|
|
on Windows and GTK (Linux) only.
|
1998-06-14 08:11:50 -04:00
|
|
|
|
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
\helpref{wxObject}{wxobject}
|
|
|
|
|
1999-02-15 15:41:29 -05:00
|
|
|
\wxheading{Include files}
|
|
|
|
|
|
|
|
<wx/wave.h>
|
|
|
|
|
1998-06-14 08:11:50 -04:00
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
|
|
|
\membersection{wxWave::wxWave}\label{wxwaveconstr}
|
|
|
|
|
|
|
|
\func{}{wxWave}{\void}
|
|
|
|
|
|
|
|
Default constructor.
|
|
|
|
|
2003-01-17 19:16:34 -05:00
|
|
|
\func{}{wxWave}{\param{const wxString\&}{ fileName}, \param{bool}{ isResource = false}}
|
1998-06-14 08:11:50 -04:00
|
|
|
|
|
|
|
Constructs a wave object from a file or resource. Call \helpref{wxWave::IsOk}{wxwaveisok} to
|
|
|
|
determine whether this succeeded.
|
|
|
|
|
|
|
|
\wxheading{Parameters}
|
|
|
|
|
|
|
|
\docparam{fileName}{The filename or Windows resource.}
|
|
|
|
|
2003-01-17 19:16:34 -05:00
|
|
|
\docparam{isResource}{true if {\it fileName} is a resource, false if it is a filename.}
|
1998-06-14 08:11:50 -04:00
|
|
|
|
|
|
|
\membersection{wxWave::\destruct{wxWave}}
|
|
|
|
|
|
|
|
\func{}{\destruct{wxWave}}{\void}
|
|
|
|
|
|
|
|
Destroys the wxWave object.
|
|
|
|
|
|
|
|
\membersection{wxWave::Create}\label{wxwavecreate}
|
|
|
|
|
2003-01-17 19:16:34 -05:00
|
|
|
\func{bool}{Create}{\param{const wxString\&}{ fileName}, \param{bool}{ isResource = false}}
|
1998-06-14 08:11:50 -04:00
|
|
|
|
|
|
|
Constructs a wave object from a file or resource.
|
|
|
|
|
|
|
|
\wxheading{Parameters}
|
|
|
|
|
|
|
|
\docparam{fileName}{The filename or Windows resource.}
|
|
|
|
|
2003-01-17 19:16:34 -05:00
|
|
|
\docparam{isResource}{true if {\it fileName} is a resource, false if it is a filename.}
|
1998-06-14 08:11:50 -04:00
|
|
|
|
|
|
|
\wxheading{Return value}
|
|
|
|
|
2003-01-17 19:16:34 -05:00
|
|
|
true if the call was successful, false otherwise.
|
1998-06-14 08:11:50 -04:00
|
|
|
|
|
|
|
\membersection{wxWave::IsOk}\label{wxwaveisok}
|
|
|
|
|
|
|
|
\constfunc{bool}{IsOk}{\void}
|
|
|
|
|
2003-01-17 19:16:34 -05:00
|
|
|
Returns true if the object contains a successfully loaded file or resource, false otherwise.
|
1998-06-14 08:11:50 -04:00
|
|
|
|
|
|
|
\membersection{wxWave::Play}\label{wxwaveplay}
|
|
|
|
|
2003-01-17 19:16:34 -05:00
|
|
|
\constfunc{bool}{Play}{\param{bool}{ async = true}, \param{bool}{ looped = false}}
|
1998-06-14 08:11:50 -04:00
|
|
|
|
|
|
|
Plays the wave file synchronously or asynchronously, looped or single-shot.
|
|
|
|
|
|
|
|
|