OPAL  Version 3.18.8
opalwavfile.h
Go to the documentation of this file.
1 /*
2  * OpalWavFile.h
3  *
4  * WAV file class with auto-PCM conversion
5  *
6  * OpenH323 Library
7  *
8  * Copyright (c) 2002 Equivalence Pty. Ltd.
9  *
10  * The contents of this file are subject to the Mozilla Public License
11  * Version 1.0 (the "License"); you may not use this file except in
12  * compliance with the License. You may obtain a copy of the License at
13  * http://www.mozilla.org/MPL/
14  *
15  * Software distributed under the License is distributed on an "AS IS"
16  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
17  * the License for the specific language governing rights and limitations
18  * under the License.
19  *
20  * The Original Code is Open H323 Library.
21  *
22  * Contributor(s): ______________________________________.
23  */
24 
25 #ifndef OPAL_CODEC_OPALWAVFILE_H
26 #define OPAL_CODEC_OPALWAVFILE_H
27 
28 #ifdef P_USE_PRAGMA
29 #pragma interface
30 #endif
31 
32 #include <opal_config.h>
33 
34 #ifdef P_WAVFILE
35 
36 #include <ptclib/pwavfile.h>
37 
38 
39 class OpalMediaFormat;
40 
41 
48 class OpalWAVFile : public PWAVFile
49 {
50  PCLASSINFO(OpalWAVFile, PWAVFile);
51  public:
52  OpalWAVFile(
53  unsigned format = fmt_PCM
54  );
55 
68  OpalWAVFile(
69  OpenMode mode,
70  OpenOptions opts = ModeDefault,
71  unsigned format = fmt_PCM,
72  bool autoConvert = true
73  );
74 
84  OpalWAVFile(
85  const PFilePath & name,
86  OpenMode mode = ReadWrite,
87  OpenOptions opts = ModeDefault,
88  unsigned format = fmt_PCM,
89  bool autoConvert = true
90  );
91 
92  OpalWAVFile(
93  const OpalMediaFormat & mediaFormat,
94  const PFilePath & name,
95  OpenMode mode = ReadWrite,
96  OpenOptions opts = ModeDefault,
97  bool autoConvert = true
98  );
99 
100 
101  static bool AddMediaFormat(
102  const OpalMediaFormat & mediaFormat
103  );
104 };
105 
106 
107 PFACTORY_LOAD(PWAVFileConverterULaw);
108 
109 #endif
110 
111 
112 #endif // OPAL_CODEC_OPALWAVFILE_H
113 
114 
115 // End of File ///////////////////////////////////////////////////////////////
PFACTORY_LOAD(OpalPluginCodecManager)
Definition: mediafmt.h:806