OWLNext 7.0
Borland's Object Windows Library for the modern age
|
Wrapper to play .WAV files. More...
#include <owl/mci.h>
Public Member Functions | |
TMciWaveAudio (LPCTSTR elementName=0, LPCTSTR deviceName=0, uint16 id=0) | |
Constructs an MCI waveaudio (.WAV) device. | |
TMciWaveAudio (const tstring &elementName, const tstring &deviceName, uint16 id=0) | |
String-aware overload. | |
MCIERROR | Play (DWORD_PTR flags=0, DWORD from=0, DWORD to=0) |
Plays the file on the waveaudio device. | |
Public Member Functions inherited from owl::TMci | |
TMci () | |
Creates a hidden window for catching messages. | |
virtual | ~TMci () |
If the MCI device is still open, this closes it now. Deletes the hidden window. | |
MCIERROR | Open (const MCI_OPEN_PARMS &, DWORD_PTR flags=0) |
Opens the MCI device. | |
MCIERROR | Close () |
Stops the MCI device and closes it. | |
MCIERROR | Play (const MCI_PLAY_PARMS &, DWORD_PTR flags=0) |
Plays the MCI device. | |
MCIERROR | Stop (DWORD_PTR flags=0) |
Stops the MCI device. | |
MCIERROR | Pause (DWORD_PTR flags=0) |
Pauses the MCI device. | |
MCIERROR | Resume (DWORD_PTR flags=0) |
Resumes playing of the MCI device. | |
MCIERROR | Seek (const MCI_SEEK_PARMS &, DWORD_PTR flags=0) |
Seeks a particular position on the MCI device. | |
MCIERROR | Seek (DWORD to, DWORD_PTR flags=0) |
Seeks a particular position on the MCI device. | |
MCIERROR | Load (const tstring &fileName, DWORD_PTR flags=0) |
Loads the file into the MCI device. | |
virtual TResult | MciNotify (TParam1, TParam2) |
The default MciNotify is to return 0. | |
bool | IsBusy () const |
Returns true if the MCI is currently busy doing something. | |
void | SetBusy (bool) |
Sets the busy flag for the MCI device. | |
MCIDEVICEID | GetDeviceId () const |
Returns the ID of the open MCI device. | |
HWND | GetCallbackWindow () const |
Returns the callback. If the window exists, the handle of the window is returned. | |
MCIERROR | SendCommand (UINT msg, DWORD_PTR flags, DWORD_PTR param) |
Sends the MCI command message to the device if it's not busy. | |
Additional Inherited Members | |
Static Public Member Functions inherited from owl::TMci | |
static MCIERROR | SendCommand (MCIDEVICEID deviceId, UINT msg, DWORD_PTR flags, DWORD_PTR param) |
Sends the MCI command message to the opened device. | |
owl::TMciWaveAudio::TMciWaveAudio | ( | LPCTSTR | elementName = 0, |
LPCTSTR | deviceName = 0, | ||
uint16 | id = 0 ) |
Constructs an MCI waveaudio (.WAV) device.
Definition at line 35 of file mciwav.cpp.
References _T, and owl::TMci::Open().
Plays the file on the waveaudio device.
Definition at line 59 of file mciwav.cpp.
References owl::TMci::GetCallbackWindow(), and owl::TMci::Play().