CSound Class Reference

Encapsulates functionality of a DirectSound buffer. More...

#include <Sound.h>

Collaboration diagram for CSound:

Collaboration graph
[legend]

List of all members.

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.


Detailed Description

Encapsulates functionality of a DirectSound buffer.

Author:
Petar Bajic
Date:
January, 16 2007.

Constructor & Destructor Documentation

CSound::CSound (  ) 

Standard constructor.

Author:
Petar Bajic
Date:
January, 16 2007.

CSound::~CSound (  ) 

Standard destructor.

Author:
Petar Bajic
Date:
January, 16 2007.


Member Function Documentation

bool CSound::Init ( IDirectSound8 *  pDS,
LPWSTR  strWaveFileName 
)

Loads wav file and creates CWaveFile instance.

Parameters:
strWaveFileName - media file
Author:
Petar Bajic
Date:
January, 16 2007.

HRESULT CSound::Play (  ) 

Plays the sound using DirectSound buffer interface.

Author:
Petar Bajic
Date:
January, 16 2007.

HRESULT CSound::Stop (  ) 

Stop the sound.

Author:
Petar Bajic
Date:
January, 16 2007.

HRESULT CSound::Reset (  ) 

Reset sound buffer.

Author:
Petar Bajic
Date:
January, 16 2007.

BOOL CSound::IsSoundPlaying (  ) 

Checks to see if a buffer is playing and returns TRUE if it is.

Author:
Petar Bajic
Date:
January, 16 2007.


The documentation for this class was generated from the following files:
Generated on Wed Mar 26 16:00:54 2008 for Turtle Shepherd by  doxygen 1.5.3