Public Member Functions

sp::audio::DummySound Class Reference

#include <spDummySound.hpp>

Inheritance diagram for sp::audio::DummySound:
sp::audio::Sound

List of all members.

Public Member Functions

 DummySound ()
 ~DummySound ()
bool reload (const io::stringc &Filename, u8 BufferCount=DEF_SOUND_BUFFERCOUNT)
void close ()
void setSeek (f32 Seek)
f32 getSeek () const
void setVolume (f32 Volume)
void setSpeed (f32 Speed)
void setBalance (f32 Balance)
f32 getLength () const
 Returns the length of the sound (in seconds).
bool valid () const
 Returns true if the object is a valid sound. Otherwise no sound file has been loaded or could not load.

Constructor & Destructor Documentation

sp::audio::DummySound::DummySound (  ) 
sp::audio::DummySound::~DummySound (  ) 

Member Function Documentation

void sp::audio::DummySound::close (  )  [virtual]

Implements sp::audio::Sound.

f32 sp::audio::DummySound::getLength (  )  const [virtual]

Returns the length of the sound (in seconds).

Implements sp::audio::Sound.

f32 sp::audio::DummySound::getSeek (  )  const [virtual]

Reimplemented from sp::audio::Sound.

bool sp::audio::DummySound::reload ( const io::stringc Filename,
u8  BufferCount = DEF_SOUND_BUFFERCOUNT 
) [virtual]

Implements sp::audio::Sound.

void sp::audio::DummySound::setBalance ( f32  Balance  )  [virtual]

Sets the balance of the sound.

Parameters:
Balance,: Specifies the balance between two sound-output devices (the sound boxes). Must lie between -1.0 (left) and 1.0 (right). By default 0.0 (in the middle, both boxes have the same volume).

Reimplemented from sp::audio::Sound.

void sp::audio::DummySound::setSeek ( f32  Seek  )  [virtual]

Sets the seek or status of the sound. To use this function "play" needs not to be called.

Parameters:
Seek,: Specifies the status. Must lie between 0.0 and 1.0.

Reimplemented from sp::audio::Sound.

void sp::audio::DummySound::setSpeed ( f32  Speed  )  [virtual]

Sets the speed or frequency of the sound.

Parameters:
Speed,: Specifies the speed. Must lie between 0.0 (slow, where with 0.0 the sound stops to play and 2.0 (fast). By default 1.0 (normal). Backwards playing is not possible!

Reimplemented from sp::audio::Sound.

void sp::audio::DummySound::setVolume ( f32  Volume  )  [virtual]

Sets the volume of the sound.

Parameters:
Volume,: Specifies the volume for the sound. Must lie between 0.0 (quiet) and 1.0 (loud). By default 1.0.

Reimplemented from sp::audio::Sound.

bool sp::audio::DummySound::valid (  )  const [virtual]

Returns true if the object is a valid sound. Otherwise no sound file has been loaded or could not load.

Implements sp::audio::Sound.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines