#include <sound.h>
Public Member Functions | |
~IAX2SoundList () | |
void | Initialise () |
PBYTEArray * | GetLastEntry () |
void | AddNewEntry (PBYTEArray *newEntry) |
void | GetAllDeleteAll (IAX2SoundList &dest) |
PINDEX | GetSize () |
Protected Attributes | |
PMutex | mutex |
New sound blocks are added to the beginning of the list.
Old sound blocks are removed from the end of the list.
The IAX2SoundList is a thread safe storage of PBYTEArray structures.
IAX2SoundList::~IAX2SoundList | ( | ) |
Destructor, which deletes all sound packets on this list
void IAX2SoundList::Initialise | ( | ) | [inline] |
Removing item from list will not automatically delete it
PBYTEArray* IAX2SoundList::GetLastEntry | ( | ) |
Return a pointer to the last element on the list. This will remove this element from the list. Returns NULL if the list is empty
void IAX2SoundList::AddNewEntry | ( | PBYTEArray * | newEntry | ) |
Place a new data block at the beginning of the last.
void IAX2SoundList::GetAllDeleteAll | ( | IAX2SoundList & | dest | ) |
Return a copy of all entries, and purge list
PINDEX IAX2SoundList::GetSize | ( | ) | [inline] |
Thread safe read of the size of the list
PMutex IAX2SoundList::mutex [protected] |
Mutex to give thread safety.