1 \section{\class{wxWave
}}\label{wxwave
}
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
7 \wxheading{Derived from
}
9 \helpref{wxObject
}{wxobject
}
11 \latexignore{\rtfignore{\wxheading{Members
}}}
13 \membersection{wxWave::wxWave
}\label{wxwaveconstr
}
15 \func{}{wxWave
}{\void}
19 \func{}{wxWave
}{\param{const wxString\&
}{ fileName
},
\param{bool
}{ isResource = FALSE
}}
21 Constructs a wave object from a file or resource. Call
\helpref{wxWave::IsOk
}{wxwaveisok
} to
22 determine whether this succeeded.
24 \wxheading{Parameters
}
26 \docparam{fileName
}{The filename or Windows resource.
}
28 \docparam{isResource
}{TRUE if
{\it fileName
} is a resource, FALSE if it is a filename.
}
30 \membersection{wxWave::
\destruct{wxWave
}}
32 \func{}{\destruct{wxWave
}}{\void}
34 Destroys the wxWave object.
36 \membersection{wxWave::Create
}\label{wxwavecreate
}
38 \func{bool
}{wxWave
}{\param{const wxString\&
}{ fileName
},
\param{bool
}{ isResource = FALSE
}}
40 Constructs a wave object from a file or resource.
42 \wxheading{Parameters
}
44 \docparam{fileName
}{The filename or Windows resource.
}
46 \docparam{isResource
}{TRUE if
{\it fileName
} is a resource, FALSE if it is a filename.
}
48 \wxheading{Return value
}
50 TRUE if the call was successful, FALSE otherwise.
52 \membersection{wxWave::IsOk
}\label{wxwaveisok
}
54 \constfunc{bool
}{IsOk
}{\void}
56 Returns TRUE if the object contains a successfully loaded file or resource, FALSE otherwise.
58 \membersection{wxWave::Play
}\label{wxwaveplay
}
60 \constfunc{bool
}{Play
}{\param{bool
}{ async = TRUE
},
\param{bool
}{ looped = FALSE
}}
62 Plays the wave file synchronously or asynchronously, looped or single-shot.