OPAL  Version 3.14.3
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  * $Revision: 29536 $
25  * $Author: rjongbloed $
26  * $Date: 2013-04-19 18:55:15 +1000 (Fri, 19 Apr 2013) $
27  */
28 
29 #ifndef OPAL_CODEC_OPALWAVFILE_H
30 #define OPAL_CODEC_OPALWAVFILE_H
31 
32 #ifdef P_USE_PRAGMA
33 #pragma interface
34 #endif
35 
36 #include <opal_config.h>
37 
38 #ifdef P_WAVFILE
39 
40 #include <ptclib/pwavfile.h>
41 
42 
43 class OpalMediaFormat;
44 
45 
52 class OpalWAVFile : public PWAVFile
53 {
54  PCLASSINFO(OpalWAVFile, PWAVFile);
55  public:
56  OpalWAVFile(
57  unsigned format = fmt_PCM
58  );
59 
72  OpalWAVFile(
73  OpenMode mode,
74  OpenOptions opts = ModeDefault,
75  unsigned format = fmt_PCM
76  );
77 
87  OpalWAVFile(
88  const PFilePath & name,
89  OpenMode mode = ReadWrite,
90  OpenOptions opts = ModeDefault,
91  unsigned format = fmt_PCM
92  );
93 
94 
95  static bool AddMediaFormat(
96  const OpalMediaFormat & mediaFormat
97  );
98 };
99 
100 
101 PFACTORY_LOAD(PWAVFileConverterULaw);
102 
103 #endif
104 
105 
106 #endif // OPAL_CODEC_OPALWAVFILE_H
107 
108 
109 // End of File ///////////////////////////////////////////////////////////////