#include <Sound.h>
Public Member Functions | |
CSound () | |
Standard constructor. | |
~CSound () | |
Standard destructor. | |
bool | Init (IDirectSound8 *pDS, LPWSTR strWaveFileName) |
Loads wav file and creates CWaveFile instance. | |
HRESULT | Play () |
Plays the sound using DirectSound buffer interface. | |
HRESULT | Stop () |
Stop the sound. | |
HRESULT | Reset () |
Reset sound buffer. | |
BOOL | IsSoundPlaying () |
Checks to see if a buffer is playing and returns TRUE if it is. |
CSound::CSound | ( | ) |
Standard constructor.
CSound::~CSound | ( | ) |
Standard destructor.
bool CSound::Init | ( | IDirectSound8 * | pDS, | |
LPWSTR | strWaveFileName | |||
) |
Loads wav file and creates CWaveFile instance.
strWaveFileName | - media file |
HRESULT CSound::Play | ( | ) |
Plays the sound using DirectSound buffer interface.
HRESULT CSound::Stop | ( | ) |
Stop the sound.
HRESULT CSound::Reset | ( | ) |
Reset sound buffer.
BOOL CSound::IsSoundPlaying | ( | ) |
Checks to see if a buffer is playing and returns TRUE if it is.