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