Description |
Parent class: XMediaWindow
XSound |
XFrameWindow * owner the owner of the device
Construct a sound-device. XSound can play MIDI and WAV-files. To use this control you must invoke the multimedia-library!
~XSound |
The destructor MUST be called before the message-loop of an aplication is destroyed. Therefore overwrite QueryForClose() of the owning framewindow and call the destructor of XSound in that function.
SetDataFile |
char * p the file to play
LONG resultcode
Play a new file
SetVolume |
USHORT volume volume in percent
LONG resultcode
Set volume
OpenDevice |
char * p file to play
LONG resultcode
Open the device