# opalwavfile.h

Go to the documentation of this file.

    00001 /*
    00002  * OpalWavFile.h
    00003  *
    00004  * WAV file class with auto-PCM conversion
    00005  *
    00006  * OpenH323 Library
    00007  *
    00008  * Copyright (c) 2002 Equivalence Pty. Ltd.
    00009  *
    00010  * The contents of this file are subject to the Mozilla Public License
    00011  * Version 1.0 (the "License"); you may not use this file except in
    00012  * compliance with the License. You may obtain a copy of the License at
    00013  * http://www.mozilla.org/MPL/
    00014  *
    00015  * Software distributed under the License is distributed on an "AS IS"
    00016  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
    00017  * the License for the specific language governing rights and limitations
    00018  * under the License.
    00019  *
    00020  * The Original Code is Open H323 Library.
    00021  *
    00022  * Contributor(s): ______________________________________.
    00023  *
    00024  * $Revision: 27041 $
    00025  * $Author: rjongbloed $
    00026  * $Date: 2012-02-22 01:33:50 -0600 (Wed, 22 Feb 2012) $
    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 #ifdef P_WAVFILE
    00039
    00040 #include <ptclib/pwavfile.h>
    00041
    00042
    00043 class OpalMediaFormat;
    00044
    00045
    00052 class OpalWAVFile : public PWAVFile
    00053 {
    00054   PCLASSINFO(OpalWAVFile, PWAVFile);
    00055   public:
    00056     OpalWAVFile(
    00057       unsigned format = fmt_PCM
    00058     );
    00059
    00072     OpalWAVFile(
    00073       OpenMode mode,
    00074       OpenOptions opts = ModeDefault,
    00075       unsigned format = fmt_PCM
    00076     );
    00077
    00087     OpalWAVFile(
    00088       const PFilePath & name,
    00089       OpenMode mode = ReadWrite,
    00090       OpenOptions opts = ModeDefault,
    00091       unsigned format = fmt_PCM
    00092     );
    00093
    00094
    00095     static bool AddMediaFormat(
    00096       const OpalMediaFormat & mediaFormat
    00097     );
    00098 };
    00099
    00100
    00101 PFACTORY_LOAD(PWAVFileConverterULaw);
    00102
    00103 #endif
    00104
    00105
    00106 #endif // OPAL_CODEC_OPALWAVFILE_H
    00107
    00108
    00109 // End of File ///////////////////////////////////////////////////////////////