vorbisdecoderdllstuff.h

Go to the documentation of this file.
00001 //===========================================================================
00002 //Copyright (C) 2003, 2004 Zentaro Kavanagh
00003 //
00004 //Redistribution and use in source and binary forms, with or without
00005 //modification, are permitted provided that the following conditions
00006 //are met:
00007 //
00008 //- Redistributions of source code must retain the above copyright
00009 //  notice, this list of conditions and the following disclaimer.
00010 //
00011 //- Redistributions in binary form must reproduce the above copyright
00012 //  notice, this list of conditions and the following disclaimer in the
00013 //  documentation and/or other materials provided with the distribution.
00014 //
00015 //- Neither the name of Zentaro Kavanagh nor the names of contributors 
00016 //  may be used to endorse or promote products derived from this software 
00017 //  without specific prior written permission.
00018 //
00019 //THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
00020 //``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
00021 //LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
00022 //PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE ORGANISATION OR
00023 //CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
00024 //EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
00025 //PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
00026 //PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
00027 //LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
00028 //NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
00029 //SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00030 //===========================================================================
00031 
00032 #pragma once
00033 
00034 //***************************** Old imp
00035 //#ifdef DSFABSTRACOGGAUDIODECODER_EXPORTS
00036 //#pragma message("----> Exporting from Abstract Library...")
00037 //#define ABS_AUDIO_DEC_API __declspec(dllexport)
00038 //#else
00039 //#pragma message("<---- Importing from Abstract Library...")
00040 //#define ABS_AUDIO_DEC_API __declspec(dllimport)
00041 //#endif
00042 //
00043 //
00044 //
00045 //#include "AbstractAudioDecodeFilter.h"
00046 //#include "AbstractAudioDecodeInputPin.h"
00047 //#include "AbstractAudioDecodeOutputPin.h"
00048 //***************************** Old imp ends
00049 
00050 
00051 //**************************** New imp
00052 
00053 #include "AbstractTransformFilter.h"
00054 #include "AbstractTransformInputPin.h"
00055 #include "AbstractTransformOutputPin.h"
00056 //****************************** New imp ends
00057 
00058 #include "VorbisDecodeInputPin.h"
00059 #include "VorbisDecodeOutputPin.h"
00060 #include "VorbisDecodeFilter.h"
00061 
00062 #ifdef LIBOOOGG_EXPORTS
00063 #define LIBOOOGG_API __declspec(dllexport)
00064 #else
00065 #define LIBOOOGG_API __declspec(dllimport)
00066 #endif
00067 
00068 // {05A1D945-A794-44ef-B41A-2F851A117155}
00069 DEFINE_GUID(CLSID_VorbisDecodeFilter, 
00070 0x5a1d945, 0xa794, 0x44ef, 0xb4, 0x1a, 0x2f, 0x85, 0x1a, 0x11, 0x71, 0x55);
00071 
00072 // {8A0566AC-42B3-4ad9-ACA3-93B906DDF98A}
00073 DEFINE_GUID(MEDIASUBTYPE_Vorbis, 
00074 0x8a0566ac, 0x42b3, 0x4ad9, 0xac, 0xa3, 0x93, 0xb9, 0x6, 0xdd, 0xf9, 0x8a);
00075 
00076 // {44E04F43-58B3-4de1-9BAA-8901F852DAE4}
00077 DEFINE_GUID(FORMAT_Vorbis, 
00078 0x44e04f43, 0x58b3, 0x4de1, 0x9b, 0xaa, 0x89, 0x1, 0xf8, 0x52, 0xda, 0xe4);
00079 
00080 
00081 const REGPINTYPES VorbisDecodeOutputTypes = {
00082     &MEDIATYPE_Audio,
00083         &MEDIASUBTYPE_PCM
00084 };
00085 
00086 const REGPINTYPES VorbisDecodeInputTypes = {
00087         &MEDIATYPE_Audio,
00088         &MEDIASUBTYPE_Vorbis
00089 };
00090 
00091 const REGFILTERPINS VorbisDecodePinReg[] = {
00092         {
00093     L"Vorbis Input",                                            //Name (obsoleted)
00094         FALSE,                                                          //Renders from this pin ?? Not sure about this.
00095         FALSE,                                                          //Not an output pin
00096         FALSE,                                                          //Cannot have zero instances of this pin
00097         FALSE,                                                          //Cannot have more than one instance of this pin
00098         NULL,                                                           //Connects to filter (obsoleted)
00099         NULL,                                                           //Connects to pin (obsoleted)
00100         1,                                                                      //upport two media type
00101         &VorbisDecodeInputTypes                         //Pointer to media type (Audio/Vorbis or Audio/Speex)
00102         } ,
00103 
00104         {
00105         L"PCM Output",                                          //Name (obsoleted)
00106         FALSE,                                                          //Renders from this pin ?? Not sure about this.
00107         TRUE,                                                           //Is an output pin
00108         FALSE,                                                          //Cannot have zero instances of this pin
00109         FALSE,                                                          //Cannot have more than one instance of this pin
00110         NULL,                                                           //Connects to filter (obsoleted)
00111         NULL,                                                           //Connects to pin (obsoleted)
00112         1,                                                                      //Only support one media type
00113         &VorbisDecodeOutputTypes                                        //Pointer to media type (Audio/PCM)
00114 
00115         }
00116 };
00117 
00118 
00119 
00120 const REGFILTER2 VorbisDecodeFilterReg = {
00121                 1,
00122                 MERIT_NORMAL,
00123                 2,
00124         VorbisDecodePinReg
00125                 
00126 };
00127            
00128 
00129 struct sVorbisFormatBlock {
00130         unsigned long vorbisVersion;
00131         unsigned long samplesPerSec;
00132         unsigned long minBitsPerSec;
00133         unsigned long avgBitsPerSec;
00134         unsigned long maxBitsPerSec;
00135         unsigned char numChannels;
00136 };

Generated on Tue Feb 15 14:54:17 2005 for oggdsf by  doxygen 1.3.9