FLACdecoderdllstuff.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 
00033 #pragma once
00034 //#ifdef DSFABSTRACOGGAUDIODECODER_EXPORTS
00035 //#pragma message("----> Exporting from Abstract Library...")
00036 //#define ABS_AUDIO_DEC_API __declspec(dllexport)
00037 //#else
00038 //#pragma message("<---- Importing from Abstract Library...")
00039 //#define ABS_AUDIO_DEC_API __declspec(dllimport)
00040 //#endif
00041 
00042 struct sFLACFormatBlock {
00043         unsigned short numChannels;
00044         unsigned long numBitsPerSample;
00045         unsigned long samplesPerSec;
00046 };
00047 
00048 #include "AbstractTransformFilter.h"
00049 #include "AbstractTransformInputPin.h"
00050 #include "AbstractTransformOutputPin.h"
00051 #include "FLACDecodeFilter.h"
00052 #include "FLACDecodeInputPin.h"
00053 #include "FLACDecodeOutputPin.h"
00054 
00055 
00056 
00057 
00058 // {3376086C-D6F9-4ce4-8B89-33CD570106B5}
00059 DEFINE_GUID(CLSID_FLACDecodeFilter, 
00060 0x3376086c, 0xd6f9, 0x4ce4, 0x8b, 0x89, 0x33, 0xcd, 0x57, 0x1, 0x6, 0xb5);
00061 
00063 //DEFINE_GUID(FORMAT_FLAC, 
00064 //0x1cdc48ac, 0x4c24, 0x4b8b, 0x98, 0x2b, 0x70, 0x7, 0xa2, 0x9d, 0x83, 0xc4);
00065 //
00067 //DEFINE_GUID(MEDIASUBTYPE_FLAC, 
00068 //0x3913f0ab, 0xe7ed, 0x41c4, 0x97, 0x9b, 0x1d, 0x1f, 0xdd, 0x98, 0x3c, 0x7);
00069 
00070 // {60891713-C24F-4767-B6C9-6CA05B3338FC}
00071 DEFINE_GUID(MEDIATYPE_OggPacketStream, 
00072 0x60891713, 0xc24f, 0x4767, 0xb6, 0xc9, 0x6c, 0xa0, 0x5b, 0x33, 0x38, 0xfc);
00073 
00074 // {95388704-162C-42a9-8149-C3577C12AAF9}
00075 DEFINE_GUID(FORMAT_OggIdentHeader, 
00076 0x95388704, 0x162c, 0x42a9, 0x81, 0x49, 0xc3, 0x57, 0x7c, 0x12, 0xaa, 0xf9);
00077 
00078 // {43F0F818-10B0-4c86-B9F1-F6B6E2D33462}
00079 DEFINE_GUID(IID_IOggDecoder, 
00080 0x43f0f818, 0x10b0, 0x4c86, 0xb9, 0xf1, 0xf6, 0xb6, 0xe2, 0xd3, 0x34, 0x62);
00081 const REGPINTYPES FLACDecodeOutputTypes = {
00082     &MEDIATYPE_Audio,
00083         &MEDIASUBTYPE_PCM
00084 };
00085 
00086 const REGPINTYPES FLACDecodeInputTypes = {
00087         &MEDIATYPE_OggPacketStream,
00088         &MEDIASUBTYPE_None
00089 };
00090 const REGFILTERPINS FLACDecodePinReg[] = {
00091         {
00092     L"FLAC Input",                                              //Name (obsoleted)
00093         FALSE,                                                          //Renders from this pin ?? Not sure about this.
00094         FALSE,                                                          //Not an output pin
00095         FALSE,                                                          //Cannot have zero instances of this pin
00096         FALSE,                                                          //Cannot have more than one instance of this pin
00097         NULL,                                                           //Connects to filter (obsoleted)
00098         NULL,                                                           //Connects to pin (obsoleted)
00099         1,                                                                      //upport two media type
00100         &FLACDecodeInputTypes                           //Pointer to media type (Audio/Vorbis or Audio/Speex)
00101         } ,
00102 
00103         {
00104         L"PCM Output",                                          //Name (obsoleted)
00105         FALSE,                                                          //Renders from this pin ?? Not sure about this.
00106         TRUE,                                                           //Is an output pin
00107         FALSE,                                                          //Cannot have zero instances of this pin
00108         FALSE,                                                          //Cannot have more than one instance of this pin
00109         NULL,                                                           //Connects to filter (obsoleted)
00110         NULL,                                                           //Connects to pin (obsoleted)
00111         1,                                                                      //Only support one media type
00112         &FLACDecodeOutputTypes                                  //Pointer to media type (Audio/PCM)
00113 
00114         }
00115 };
00116 
00117 
00118 
00119 const REGFILTER2 FLACDecodeFilterReg = {
00120                 1,
00121                 MERIT_NORMAL,
00122                 2,
00123         FLACDecodePinReg
00124                 
00125 };

Generated on Thu Feb 16 23:48:06 2006 for oggdsf by  doxygen 1.3.9