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