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