]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/wave.tex
Motif and other mods
[wxWidgets.git] / docs / latex / wx / wave.tex
CommitLineData
eaaa6a06
JS
1\section{\class{wxWave}}\label{wxwave}
2
3This class represents a short wave file, in Windows WAV format, that
4can be stored in memory and played. Currently this class is for Windows
5only.
6
7\wxheading{Derived from}
8
9\helpref{wxObject}{wxobject}
10
11\latexignore{\rtfignore{\wxheading{Members}}}
12
13\membersection{wxWave::wxWave}\label{wxwaveconstr}
14
15\func{}{wxWave}{\void}
16
17Default constructor.
18
19\func{}{wxWave}{\param{const wxString\&}{ fileName}, \param{bool}{ isResource = FALSE}}
20
21Constructs a wave object from a file or resource. Call \helpref{wxWave::IsOk}{wxwaveisok} to
22determine whether this succeeded.
23
24\wxheading{Parameters}
25
26\docparam{fileName}{The filename or Windows resource.}
27
28\docparam{isResource}{TRUE if {\it fileName} is a resource, FALSE if it is a filename.}
29
30\membersection{wxWave::\destruct{wxWave}}
31
32\func{}{\destruct{wxWave}}{\void}
33
34Destroys the wxWave object.
35
36\membersection{wxWave::Create}\label{wxwavecreate}
37
38\func{bool}{wxWave}{\param{const wxString\&}{ fileName}, \param{bool}{ isResource = FALSE}}
39
40Constructs a wave object from a file or resource.
41
42\wxheading{Parameters}
43
44\docparam{fileName}{The filename or Windows resource.}
45
46\docparam{isResource}{TRUE if {\it fileName} is a resource, FALSE if it is a filename.}
47
48\wxheading{Return value}
49
50TRUE if the call was successful, FALSE otherwise.
51
52\membersection{wxWave::IsOk}\label{wxwaveisok}
53
54\constfunc{bool}{IsOk}{\void}
55
56Returns TRUE if the object contains a successfully loaded file or resource, FALSE otherwise.
57
58\membersection{wxWave::Play}\label{wxwaveplay}
59
60\constfunc{bool}{Play}{\param{bool}{ async = TRUE}, \param{bool}{ looped = FALSE}}
61
62Plays the wave file synchronously or asynchronously, looped or single-shot.
63
64