13#if defined(BI_HAS_PRAGMA_ONCE)
58 MCIERROR
Open(
const MCI_OPEN_PARMS&, DWORD_PTR flags = 0);
60 MCIERROR
Play(
const MCI_PLAY_PARMS&, DWORD_PTR flags = 0);
61 MCIERROR
Stop(DWORD_PTR flags = 0);
62 MCIERROR
Pause(DWORD_PTR flags = 0);
63 MCIERROR
Resume(DWORD_PTR flags = 0);
64 MCIERROR
Seek(
const MCI_SEEK_PARMS&, DWORD_PTR flags = 0);
65 MCIERROR
Seek(DWORD to, DWORD_PTR flags = 0);
66 MCIERROR
Load(
const tstring& fileName, DWORD_PTR flags = 0);
82 MCIERROR
SendCommand(UINT msg, DWORD_PTR flags, DWORD_PTR param);
83 static MCIERROR
SendCommand(MCIDEVICEID deviceId, UINT msg, DWORD_PTR flags, DWORD_PTR param);
86 void SetBusyIfNeeded(DWORD_PTR flags);
89 bool WaitingForNotification;
100 TMciWaveAudio(LPCTSTR elementName = 0, LPCTSTR deviceName = 0,
105 MCIERROR
Play(DWORD_PTR flags = 0, DWORD from = 0, DWORD to = 0);
114 static MCIERROR
mciSendCommand(MCIDEVICEID, UINT msg, DWORD_PTR flags, DWORD_PTR param);
136 return WaitingForNotification;
143 WaitingForNotification = b;
TMciHiddenWindow(TMci &, TModule *=0)
A hidden window created for the sole purpose of catching MCI messages.
TResult EvMciNotify(TParam1, TParam2)
Notifies the MCI class that the MCI event has finished.
TMci is a Windows MCI (Media Control Interface) encapsulation class.
MCIERROR Play(const MCI_PLAY_PARMS &, DWORD_PTR flags=0)
Plays the MCI device.
MCIDEVICEID GetDeviceId() const
Returns the ID of the open MCI device.
TMci()
Creates a hidden window for catching messages.
MCIERROR Close()
Stops the MCI device and closes it.
void SetBusy(bool)
Sets the busy flag for the MCI device.
HWND GetCallbackWindow() const
Returns the callback. If the window exists, the handle of the window is returned.
MCIERROR Open(const MCI_OPEN_PARMS &, DWORD_PTR flags=0)
Opens the MCI device.
MCIERROR Load(const tstring &fileName, DWORD_PTR flags=0)
Loads the file into the MCI device.
MCIERROR SendCommand(UINT msg, DWORD_PTR flags, DWORD_PTR param)
Sends the MCI command message to the device if it's not busy.
bool IsBusy() const
Returns true if the MCI is currently busy doing something.
MCIERROR Resume(DWORD_PTR flags=0)
Resumes playing of the MCI device.
MCIERROR Pause(DWORD_PTR flags=0)
Pauses the MCI device.
MCIERROR Seek(const MCI_SEEK_PARMS &, DWORD_PTR flags=0)
Seeks a particular position on the MCI device.
virtual TResult MciNotify(TParam1, TParam2)
The default MciNotify is to return 0.
MCIERROR Stop(DWORD_PTR flags=0)
Stops the MCI device.
MCIERROR Play(DWORD_PTR flags=0, DWORD from=0, DWORD to=0)
Plays the file on the waveaudio device.
TMciWaveAudio(LPCTSTR elementName=0, LPCTSTR deviceName=0, uint16 id=0)
Constructs an MCI waveaudio (.WAV) device.
ObjectWindows dynamic-link libraries (DLLs) construct an instance of TModule, which acts as an object...
static TModule & GetModule()
static MCIERROR mciSendCommand(MCIDEVICEID, UINT msg, DWORD_PTR flags, DWORD_PTR param)
TWindow, derived from TEventHandler and TStreamableBase, provides window-specific behavior and encaps...
TWindow(TWindow *parent, LPCTSTR title=nullptr, TModule *module=nullptr)
Adds this to the child list of parent if nonzero, and calls EnableAutoCreate so that this will be cre...
Object Windows Library (OWLNext Core).
LPARAM TParam2
Second parameter type.
WPARAM TParam1
First parameter type.
LRESULT TResult
Result type.
Base window class TWindow definition, including HWND encapsulation.