00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033 #ifndef OPAL_IAX2_SOUND_H
00034 #define OPAL_IAX2_SOUND_H
00035
00036 #ifndef _PTLIB_H
00037 #include <ptlib.h>
00038 #endif
00039
00040 #include <opal/buildopts.h>
00041
00042 #if OPAL_IAX2
00043
00044 #ifdef P_USE_PRAGMA
00045 #pragma interface
00046 #endif
00047
00048 class IAX2Frame;
00049 class IAXConnection;
00050 class PSoundChannel;
00051
00053
00063 PDECLARE_LIST(IAX2SoundList, PBYTEArray *)
00064 #ifdef DOC_PLUS_PLUS //This makes emacs bracket matching code happy.
00065 class IAX2SoundList : public PBYTEArray *
00066 {
00067 #endif
00068 public:
00070 ~IAX2SoundList();
00071
00073 void Initialise() { DisallowDeleteObjects(); }
00074
00078 PBYTEArray *GetLastEntry();
00079
00081 void AddNewEntry(PBYTEArray *newEntry);
00082
00084 void GetAllDeleteAll(IAX2SoundList &dest);
00085
00087 PINDEX GetSize() { PWaitAndSignal m(mutex); return PAbstractList::GetSize(); }
00088
00089 protected:
00091 PMutex mutex;
00092 };
00093
00094
00095 #endif // OPAL_IAX2
00096
00097 #endif // OPAL_IAX2_SOUND_H
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108