Guiliani  Version 2.5 revision 7293 (documentation build 13)
CSndWrapNull Class Reference

This is the Null Sound-Wrapper class. More...

#include <SndWrapNull.h>

Inheritance diagram for CSndWrapNull:

Public Member Functions

eC_UByte GetVolume ()
 
void LoadSnd (const eC_String &kPath, const SoundResource_t &eID, eC_UInt uiDeviceID=0)
 
eC_Bool PauseSnd (const SoundResource_t &eID)
 
eC_Bool PlaySnd (const SoundResource_t &eID, eC_UInt uiFlags=2)
 
eC_Bool ResumeSnd (const SoundResource_t &eID)
 
eC_Bool SetNOFSounds (eC_UInt uiNOFSounds)
 
eC_Bool SetVolume (eC_UByte ubVolume)
 
eC_Bool StopSnd (const SoundResource_t &eID)
 
void UnloadSnd (const SoundResource_t &eID)
 
- Public Member Functions inherited from CSndWrap
virtual eC_UInt GetNOFSounds ()
 
virtual eC_UByte GetVolume ()=0
 
virtual eC_Bool PauseSnd (const SoundResource_t &eID)=0
 
virtual eC_Bool PlaySnd (const SoundResource_t &eID, eC_UInt uiFlags=2)=0
 
virtual eC_Bool ResumeSnd (const SoundResource_t &eID)=0
 
virtual eC_Bool SetVolume (eC_UByte ubVolume)=0
 
virtual eC_Bool StopSnd (const SoundResource_t &eID)=0
 

Static Public Member Functions

static void CreateInstance ()
 
- Static Public Member Functions inherited from CSndWrap
static void DeleteInstance ()
 Deletes the Sound-Wrapper instance.
 

Additional Inherited Members

- Protected Member Functions inherited from CSndWrap
 CSndWrap ()
 Constructor.
 
 CSndWrap (const CSndWrap &kSource)
 
virtual ~CSndWrap ()
 Destructor.
 
virtual void LoadSnd (const eC_String &kPath, const SoundResource_t &eID, eC_UInt uiDeviceID=0)=0
 
CSndWrapoperator= (const CSndWrap &kSource)
 
virtual eC_Bool SetNOFSounds (eC_UInt uiNOFSounds)
 
virtual void UnloadSnd (const SoundResource_t &eID)=0
 
- Protected Attributes inherited from CSndWrap
eC_UInt m_uiNOFSounds
 total number of sound-objects.
 

Detailed Description

This is the Null Sound-Wrapper class.

It implements a null sound wrapper for Guiliani testing.

Member Function Documentation

◆ CreateInstance()

static void CSndWrapNull::CreateInstance ( )
inlinestatic

Singleton for creating a GfxWrap-Null object and change the pointer in base class to this graphics wrap.

◆ GetVolume()

eC_UByte CSndWrapNull::GetVolume ( )
inlinevirtual

Method to get the volume of an output device. The volume has to be implemented in percent. The range is from 0 till 100.

Returns
The currently set volume in percent.

Implements CSndWrap.

◆ LoadSnd()

void CSndWrapNull::LoadSnd ( const eC_String &  kPath,
const SoundResource_t eID,
eC_UInt  uiDeviceID = 0 
)
inlinevirtual

Method to load a sound file.

Parameters
kPathPath to the sound file.
eIDID of the sound.
uiDeviceIDTBD

Implements CSndWrap.

◆ PauseSnd()

eC_Bool CSndWrapNull::PauseSnd ( const SoundResource_t eID)
inlinevirtual

Method to break playback on a specified sound.

Parameters
eIDID of the sound you want to pause.
Returns
False on error.

Implements CSndWrap.

◆ PlaySnd()

eC_Bool CSndWrapNull::PlaySnd ( const SoundResource_t eID,
eC_UInt  uiFlags = 2 
)
inlinevirtual

Method to send data to the specified output device.

Parameters
eIDID of the sound you want to play.
uiFlagsFlags to set for playing. possible flags: PLAY_SYNC - wait until playback has finished before returning PLAY_ASYNC - return immediately to calling function PLAY_WAIT - if a sound is currently playing, wait for the playing sound to end, then play the new sound PLAY_DISCARD - if a sound is currently playing, return without playing the new sound PLAY_IMMEDIATELY - if a sound is currently playing, immediately stop playback and play the new sound
Returns
False on error.

Implements CSndWrap.

◆ ResumeSnd()

eC_Bool CSndWrapNull::ResumeSnd ( const SoundResource_t eID)
inlinevirtual

Method for continuing the playback of a specified sound.

Parameters
eIDID of the sound you want to resume.
Returns
False on error.

Implements CSndWrap.

◆ SetNOFSounds()

eC_Bool CSndWrapNull::SetNOFSounds ( eC_UInt  uiNOFSounds)
inlinevirtual

Sets the total number of sounds. This is called internally by the ResourceManager when dynamically allocated sound resources require the total number of sounds to be raised.

Parameters
uiNOFSoundsNumber of sounds to set.
Returns
True if successfully set, False otherwise

Reimplemented from CSndWrap.

◆ SetVolume()

eC_Bool CSndWrapNull::SetVolume ( eC_UByte  ubVolume)
inlinevirtual

Method to set the volume of an output device. The volume has to be implemented in percent. The range is from 0 till 100.

Parameters
ubVolumeto set in percent.
Returns
False on error.

Implements CSndWrap.

◆ StopSnd()

eC_Bool CSndWrapNull::StopSnd ( const SoundResource_t eID)
inlinevirtual

Method to stop playback of a specified sound.

Parameters
eIDID of the sound you want to stop.
Returns
False on error.

Implements CSndWrap.

◆ UnloadSnd()

void CSndWrapNull::UnloadSnd ( const SoundResource_t eID)
inlinevirtual

Method to unload a sound file.

Parameters
eIDID of the sound to unload.

Implements CSndWrap.


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