OPAL
Version 3.18.8
|
#include <sound.h>
Inherits PBYTEArray.
Public Member Functions | |
~IAX2SoundList () | |
void | Initialise () |
PBYTEArray * | GetLastEntry () |
void | AddNewEntry (PBYTEArray *newEntry) |
void | GetAllDeleteAll (IAX2SoundList &dest) |
PINDEX | GetSize () |
Protected Member Functions | |
PDECLARE_MUTEX (mutex) | |
The soundlist is a list of PBYTEArray pointers, which are the medium of data exchange with the play/record devices.
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::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
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
|
inline |
Thread safe read of the size of the list
|
inline |
Removing item from list will not automatically delete it
|
protected |
Mutex to give thread safety.