Planeshift
|
Used to put Sounds in a Queue and play them in the order they have been added. More...
#include <queue.h>
Public Member Functions | |
void | AddItem (const char *filename) |
Used to create a new. More... | |
void | AddItem (const char *filename) |
Used to create a new. More... | |
void | DeleteItem (SoundQueueItem *&item) |
Used to remove a. More... | |
void | DeleteItem (SoundQueueItem *&item) |
Used to remove a. More... | |
size_t | GetSize () |
Returns elements still in the queue to be played. More... | |
size_t | GetSize () |
Returns elements still in the queue to be played. More... | |
void | Purge () |
Stops playback and purges all SoundQueueItem(s). More... | |
void | Purge () |
Stops playback and purges all SoundQueueItem(s). More... | |
SoundQueue (SoundControl *&ctrl, float vol) | |
Constructor. More... | |
SoundQueue (SoundControl *&ctrl, float vol) | |
Constructor. More... | |
void | Work () |
Checks if there are queued items which can be played. More... | |
void | Work () |
Checks if there are queued items which can be played. More... | |
~SoundQueue () | |
Destructor. More... | |
~SoundQueue () | |
Destructor. More... | |
Used to put Sounds in a Queue and play them in the order they have been added.
SoundQueue::SoundQueue | ( | SoundControl *& | ctrl, |
float | vol | ||
) |
Constructor.
ctrl | a valid SoundControl |
vol | volume as float |
SoundQueue::~SoundQueue | ( | ) |
Destructor.
SoundQueue::SoundQueue | ( | SoundControl *& | ctrl, |
float | vol | ||
) |
Constructor.
ctrl | a valid SoundControl |
vol | volume as float |
SoundQueue::~SoundQueue | ( | ) |
Destructor.
void SoundQueue::AddItem | ( | const char * | filename | ) |
Used to create a new.
filename | a unique (not enforced) filename |
void SoundQueue::AddItem | ( | const char * | filename | ) |
Used to create a new.
filename | a unique (not enforced) filename |
void SoundQueue::DeleteItem | ( | SoundQueueItem *& | item | ) |
Used to remove a.
item | a valid SoundQueueItem |
void SoundQueue::DeleteItem | ( | SoundQueueItem *& | item | ) |
Used to remove a.
item | a valid SoundQueueItem |
size_t SoundQueue::GetSize | ( | ) |
Returns elements still in the queue to be played.
size_t SoundQueue::GetSize | ( | ) |
Returns elements still in the queue to be played.
void SoundQueue::Purge | ( | ) |
Stops playback and purges all SoundQueueItem(s).
void SoundQueue::Purge | ( | ) |
Stops playback and purges all SoundQueueItem(s).
void SoundQueue::Work | ( | ) |
Checks if there are queued items which can be played.
Walks over
void SoundQueue::Work | ( | ) |
Checks if there are queued items which can be played.
Walks over