]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/wave.tex
Changed version to 2.5.1
[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 4can be stored in memory and played. Currently this class is implemented
e588dd6b 5on Windows and 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
cc81d32f 23\func{}{wxWave}{\param{const wxString\&}{ fileName}, \param{bool}{ isResource = false}}
eaaa6a06
JS
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
cc81d32f 32\docparam{isResource}{true if {\it fileName} is a resource, false if it is a filename.}
eaaa6a06
JS
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
cc81d32f 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
cc81d32f 50\docparam{isResource}{true if {\it fileName} is a resource, false if it is a filename.}
eaaa6a06
JS
51
52\wxheading{Return value}
53
cc81d32f 54true if the call was successful, false otherwise.
eaaa6a06
JS
55
56\membersection{wxWave::IsOk}\label{wxwaveisok}
57
58\constfunc{bool}{IsOk}{\void}
59
cc81d32f 60Returns true if the object contains a successfully loaded file or resource, false otherwise.
eaaa6a06
JS
61
62\membersection{wxWave::Play}\label{wxwaveplay}
63
cc81d32f 64\constfunc{bool}{Play}{\param{bool}{ async = true}, \param{bool}{ looped = false}}
eaaa6a06
JS
65
66Plays the wave file synchronously or asynchronously, looped or single-shot.
67
68