Files
wxWidgets/docs/latex/wx/sound.tex
Václav Slavík 315ebf688c renamed wxWave to wxSound
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25475 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-02-02 13:42:04 +00:00

69 lines
1.7 KiB
TeX

\section{\class{wxSound}}\label{wxsound}
This class represents a short wave file, in Windows WAV format, that
can be stored in memory and played. Currently this class is implemented
on Windows and Linux only.
\wxheading{Derived from}
\helpref{wxObject}{wxobject}
\wxheading{Include files}
<wx/wave.h>
\latexignore{\rtfignore{\wxheading{Members}}}
\membersection{wxSound::wxSound}\label{wxsoundconstr}
\func{}{wxSound}{\void}
Default constructor.
\func{}{wxSound}{\param{const wxString\&}{ fileName}, \param{bool}{ isResource = false}}
Constructs a wave object from a file or resource. Call \helpref{wxSound::IsOk}{wxsoundisok} to
determine whether this succeeded.
\wxheading{Parameters}
\docparam{fileName}{The filename or Windows resource.}
\docparam{isResource}{true if {\it fileName} is a resource, false if it is a filename.}
\membersection{wxSound::\destruct{wxSound}}
\func{}{\destruct{wxSound}}{\void}
Destroys the wxSound object.
\membersection{wxSound::Create}\label{wxsoundcreate}
\func{bool}{Create}{\param{const wxString\&}{ fileName}, \param{bool}{ isResource = false}}
Constructs a wave object from a file or resource.
\wxheading{Parameters}
\docparam{fileName}{The filename or Windows resource.}
\docparam{isResource}{true if {\it fileName} is a resource, false if it is a filename.}
\wxheading{Return value}
true if the call was successful, false otherwise.
\membersection{wxSound::IsOk}\label{wxsoundisok}
\constfunc{bool}{IsOk}{\void}
Returns true if the object contains a successfully loaded file or resource, false otherwise.
\membersection{wxSound::Play}\label{wxsoundplay}
\constfunc{bool}{Play}{\param{bool}{ async = true}, \param{bool}{ looped = false}}
Plays the wave file synchronously or asynchronously, looped or single-shot.