OPAL Version 3.10.4

- Main Page
- Related Pages
- Namespaces
- Data Structures
- Files

- File List
- Globals

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: 24178 $
25 * $Author: rjongbloed $
26 * $Date: 2010-04-05 19:10:56 -0500 (Mon, 05 Apr 2010) $
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/buildopts.h>
37
38 #include <ptclib/pwavfile.h>
39
40
41 class OpalMediaFormat;
42
43
50 class OpalWAVFile : public PWAVFile
51 {
52 PCLASSINFO(OpalWAVFile, PWAVFile);
53 public:
54 OpalWAVFile(
55 unsigned format = fmt_PCM
56 );
57
70 OpalWAVFile(
71 OpenMode mode,
72 int opts = ModeDefault,
73 unsigned format = fmt_PCM
74 );
75
85 OpalWAVFile(
86 const PFilePath & name,
87 OpenMode mode = ReadWrite,
88 int opts = ModeDefault,
89 unsigned format = fmt_PCM
90 );
91
92
93 static bool AddMediaFormat(
94 const OpalMediaFormat & mediaFormat
95 );
96 };
97
98
99 PFACTORY_LOAD(PWAVFileConverterULaw);
100
101
102 #endif // OPAL_CODEC_OPALWAVFILE_H
103
104
105 // End of File ///////////////////////////////////////////////////////////////