sound.h
Go to the documentation of this file.
/*
*
*
* Inter Asterisk Exchange 2
*
* A thread safe list of sound packets.
*
* Open Phone Abstraction Library (OPAL)
*
* Copyright (c) 2005 Indranet Technologies Ltd.
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.0 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS"
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
* the License for the specific language governing rights and limitations
* under the License.
*
* The Original Code is Open Phone Abstraction Library.
*
* The Initial Developer of the Original Code is Indranet Technologies Ltd.
*
* The author of this code is Derek J Smithies
*
* $Revision: 24606 $
* $Author: dereksmithies $
* $Date: 2010-07-28 22:51:05 -0500 (Wed, 28 Jul 2010) $
*/
#ifndef OPAL_IAX2_SOUND_H
#define OPAL_IAX2_SOUND_H
#ifndef _PTLIB_H
#include <ptlib.h>
#endif
#include <opal/buildopts.h>
#if OPAL_IAX2
#ifdef P_USE_PRAGMA
#pragma interface
#endif
class IAX2Frame;
class IAXConnection;
class PSoundChannel;
PDECLARE_LIST(IAX2SoundList, PBYTEArray *)
#ifdef DOC_PLUS_PLUS //This makes emacs bracket matching code happy.
class IAX2SoundList : public PBYTEArray *
{
#endif
public:
~IAX2SoundList();
void Initialise() { DisallowDeleteObjects(); }
PBYTEArray *GetLastEntry();
void AddNewEntry(PBYTEArray *newEntry);
void GetAllDeleteAll(IAX2SoundList &dest);
PINDEX GetSize() { PWaitAndSignal m(mutex); return PAbstractList::GetSize(); }
protected:
PMutex mutex;
};
#endif // OPAL_IAX2
#endif // OPAL_IAX2_SOUND_H
/* The comment below is magic for those who use emacs to edit this file.
* With the comment below, the tab key does auto indent to 2 spaces.
*
* Local Variables:
* mode:c
* c-basic-offset:2
* End:
*/
IAX2SoundList::Initialise
void Initialise()
Definition: sound.h:73
buildopts.h
IAX2SoundList::GetLastEntry
PBYTEArray * GetLastEntry()
IAX2SoundList::~IAX2SoundList
~IAX2SoundList()
IAX2SoundList::GetSize
PINDEX GetSize()
Definition: sound.h:87
IAX2SoundList
Definition: sound.h:65
IAX2SoundList::AddNewEntry
void AddNewEntry(PBYTEArray *newEntry)
IAX2Frame
Definition: frame.h:75
IAX2SoundList::GetAllDeleteAll
void GetAllDeleteAll(IAX2SoundList &dest)
IAX2SoundList::mutex
PMutex mutex
Definition: sound.h:91