]> git.saurik.com Git - wxWidgets.git/blob - docs/latex/wx/wave.tex
* Stream doc update.
[wxWidgets.git] / docs / latex / wx / wave.tex
1 \section{\class{wxWave}}\label{wxwave}
2
3 This class represents a short wave file, in Windows WAV format, that
4 can be stored in memory and played. Currently this class is for Windows
5 only.
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
17 Default constructor.
18
19 \func{}{wxWave}{\param{const wxString\&}{ fileName}, \param{bool}{ isResource = FALSE}}
20
21 Constructs a wave object from a file or resource. Call \helpref{wxWave::IsOk}{wxwaveisok} to
22 determine 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
34 Destroys the wxWave object.
35
36 \membersection{wxWave::Create}\label{wxwavecreate}
37
38 \func{bool}{Create}{\param{const wxString\&}{ fileName}, \param{bool}{ isResource = FALSE}}
39
40 Constructs 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
50 TRUE if the call was successful, FALSE otherwise.
51
52 \membersection{wxWave::IsOk}\label{wxwaveisok}
53
54 \constfunc{bool}{IsOk}{\void}
55
56 Returns 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
62 Plays the wave file synchronously or asynchronously, looped or single-shot.
63
64