opalwavfile.h
Go to the documentation of this file.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 #ifndef OPAL_CODEC_OPALWAVFILE_H
00030 #define OPAL_CODEC_OPALWAVFILE_H
00031
00032 #ifdef P_USE_PRAGMA
00033 #pragma interface
00034 #endif
00035
00036 #include <opal/buildopts.h>
00037
00038 #include <ptclib/pwavfile.h>
00039
00040
00041 class OpalMediaFormat;
00042
00043
00050 class OpalWAVFile : public PWAVFile
00051 {
00052 PCLASSINFO(OpalWAVFile, PWAVFile);
00053 public:
00054 OpalWAVFile(
00055 unsigned format = fmt_PCM
00056 );
00057
00070 OpalWAVFile(
00071 OpenMode mode,
00072 int opts = ModeDefault,
00073 unsigned format = fmt_PCM
00074 );
00075
00085 OpalWAVFile(
00086 const PFilePath & name,
00087 OpenMode mode = ReadWrite,
00088 int opts = ModeDefault,
00089 unsigned format = fmt_PCM
00090 );
00091
00092
00093 static bool AddMediaFormat(
00094 const OpalMediaFormat & mediaFormat
00095 );
00096 };
00097
00098
00099 PFACTORY_LOAD(PWAVFileConverterULaw);
00100
00101
00102 #endif // OPAL_CODEC_OPALWAVFILE_H
00103
00104
00105