sound::SoundPlayer Class Reference

#include <SoundPlayer.h>

Collaboration diagram for sound::SoundPlayer:
Collaboration graph
[legend]

Public Member Functions

 SoundPlayer ()
virtual ~SoundPlayer ()
virtual void play (ArchiveFile &file)
virtual void stop ()

Protected Member Functions

void initialise ()
void clearBuffer ()

Static Protected Member Functions

static gboolean checkBuffer (gpointer data)

Protected Attributes

bool _initialised
ALCcontext * _context
ALuint _buffer
ALuint _source
gtkutil::Timer _timer

Detailed Description

Definition at line 13 of file SoundPlayer.h.


Constructor & Destructor Documentation

sound::SoundPlayer::SoundPlayer (  ) 
virtual sound::SoundPlayer::~SoundPlayer (  )  [virtual]

greebo: Destroys the openal context


Member Function Documentation

static gboolean sound::SoundPlayer::checkBuffer ( gpointer  data  )  [static, protected]
void sound::SoundPlayer::clearBuffer (  )  [protected]
void sound::SoundPlayer::initialise (  )  [protected]
virtual void sound::SoundPlayer::play ( ArchiveFile file  )  [virtual]

greebo: Call this with the ArchiveFile object containing the file to be played.

virtual void sound::SoundPlayer::stop (  )  [virtual]

greebo: Stops the playback immediately.


Field Documentation

ALuint sound::SoundPlayer::_buffer [protected]

Definition at line 22 of file SoundPlayer.h.

ALCcontext* sound::SoundPlayer::_context [protected]

Definition at line 19 of file SoundPlayer.h.

Definition at line 17 of file SoundPlayer.h.

ALuint sound::SoundPlayer::_source [protected]

Definition at line 25 of file SoundPlayer.h.

Definition at line 29 of file SoundPlayer.h.


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

Generated by  doxygen 1.6.2