OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
owl::TMciWaveAudio Class Reference

Wrapper to play .WAV files. More...

#include <owl/mci.h>

Inheritance diagram for owl::TMciWaveAudio:
owl::TMci

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.
 

Detailed Description

Wrapper to play .WAV files.

Definition at line 98 of file mci.h.

Constructor & Destructor Documentation

◆ TMciWaveAudio() [1/2]

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().

◆ TMciWaveAudio() [2/2]

owl::TMciWaveAudio::TMciWaveAudio ( const tstring & elementName,
const tstring & deviceName,
uint16 id = 0 )

String-aware overload.

Definition at line 47 of file mciwav.cpp.

References owl::TMci::Open().

Member Function Documentation

◆ Play()

MCIERROR owl::TMciWaveAudio::Play ( DWORD_PTR flags = 0,
DWORD from = 0,
DWORD to = 0 )

Plays the file on the waveaudio device.

Definition at line 59 of file mciwav.cpp.

References owl::TMci::GetCallbackWindow(), and owl::TMci::Play().


The documentation for this class was generated from the following files: