This class represents a short sound (loaded from Windows WAV file), that
can be stored in memory and played. Currently this class is implemented
-on Windows and Unix (and uses either
-\urlref{Open Sound System}{http://www.opensound.com/oss.html} or
+on Windows and Unix (and uses either
+\urlref{Open Sound System}{http://www.opensound.com/oss.html} or
\urlref{Simple DirectMedia Layer}{http://www.libsdl.org/}).
\wxheading{Derived from}
\latexignore{\rtfignore{\wxheading{Members}}}
-\membersection{wxSound::wxSound}\label{wxsoundconstr}
+\membersection{wxSound::wxSound}\label{wxsoundctor}
\func{}{wxSound}{\void}
\docparam{isResource}{\true if {\it fileName} is a resource, \false if it is a filename.}
-\membersection{wxSound::\destruct{wxSound}}
+\membersection{wxSound::\destruct{wxSound}}\label{wxsounddtor}
\func{}{\destruct{wxSound}}{\void}
The possible values for \arg{flags} are:
\begin{twocollist}
- \twocolitem{wxSOUND\_SYNC}{{\tt Play} will block and wait until the sound is
- replayed.}
- \twocolitem{wxSOUND\_ASYNC}{Sound is played asynchronously,
- {\tt Play} returns immediately}
- \twocolitem{wxSOUND\_ASYNC | wxSOUND\_LOOP}{Sound is played asynchronously
- and loops until another sound is played,
- \helpref{wxSound::Stop}{wxsoundstop} is called or the program terminates.}
+\twocolitem{wxSOUND\_SYNC}{{\tt Play} will block and wait until the sound is
+replayed.}
+\twocolitem{wxSOUND\_ASYNC}{Sound is played asynchronously,
+{\tt Play} returns immediately}
+\twocolitem{wxSOUND\_ASYNC | wxSOUND\_LOOP}{Sound is played asynchronously
+and loops until another sound is played,
+\helpref{wxSound::Stop}{wxsoundstop} is called or the program terminates.}
\end{twocollist}
The static form is shorthand for this code:
+
\begin{verbatim}
wxSound(filename).Play(flags);
\end{verbatim}
\func{static void}{Stop}{\void}
If a sound is played, this function stops it.
+