Module
Public Member Functions | Friends | List of all members
Module::Sound Class Reference

#include <Sound.hpp>

Public Member Functions

void replay ()
 
void resume ()
 
void pause ()
 
void stop ()
 
const std::string getName () const
 
unsigned long getTime () const
 
SoundClipgetSoundClip () const
 
void setTime (const unsigned long t)
 

Friends

class AudioInterface
 
class Book< Sound >
 

Member Function Documentation

const std::string Sound::getName ( ) const

Gets the name of this Sound.

Returns
The name of this Sound.
SoundClip * Sound::getSoundClip ( ) const

Plays a Sound.

Returns
A pointer to the Sound, which is currently playing.
unsigned long Sound::getTime ( ) const

Gets the current time of this Sound.

Returns
An unsigned long, representing the current time of this Sound.
void Sound::pause ( )

Pauses a Sound.

void Sound::replay ( )

Replays the Sound from the beginning.

void Sound::resume ( )

Resumes the Sound from where it was last paused.

void Sound::setTime ( const unsigned long  t)

Sets the time of this Sound.

Parameters
tAn unsigned long representing the time of the sound.
void Sound::stop ( )

Stops a Sound (pausing it, and setting it back to the beginning).

Friends And Related Function Documentation

friend class AudioInterface
friend
friend class Book< Sound >
friend