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 // {3913F0AB-E7ED-41c4-979B-1D1FDD983C07}
00057 DEFINE_GUID(MEDIASUBTYPE_FLAC, 
00058 0x3913f0ab, 0xe7ed, 0x41c4, 0x97, 0x9b, 0x1d, 0x1f, 0xdd, 0x98, 0x3c, 0x7);
00059 
00060 // {3376086C-D6F9-4ce4-8B89-33CD570106B5}
00061 DEFINE_GUID(CLSID_FLACDecodeFilter, 
00062 0x3376086c, 0xd6f9, 0x4ce4, 0x8b, 0x89, 0x33, 0xcd, 0x57, 0x1, 0x6, 0xb5);
00063 
00064 // {1CDC48AC-4C24-4b8b-982B-7007A29D83C4}
00065 DEFINE_GUID(FORMAT_FLAC, 
00066 0x1cdc48ac, 0x4c24, 0x4b8b, 0x98, 0x2b, 0x70, 0x7, 0xa2, 0x9d, 0x83, 0xc4);
00067 
00068 
00069 const REGPINTYPES FLACDecodeOutputTypes = {
00070     &MEDIATYPE_Audio,
00071         &MEDIASUBTYPE_PCM
00072 };
00073 
00074 const REGPINTYPES FLACDecodeInputTypes = {
00075         &MEDIATYPE_Audio,
00076         &MEDIASUBTYPE_FLAC
00077 };
00078 const REGFILTERPINS FLACDecodePinReg[] = {
00079         {
00080     L"FLAC Input",                                              //Name (obsoleted)
00081         FALSE,                                                          //Renders from this pin ?? Not sure about this.
00082         FALSE,                                                          //Not an output pin
00083         FALSE,                                                          //Cannot have zero instances of this pin
00084         FALSE,                                                          //Cannot have more than one instance of this pin
00085         NULL,                                                           //Connects to filter (obsoleted)
00086         NULL,                                                           //Connects to pin (obsoleted)
00087         1,                                                                      //upport two media type
00088         &FLACDecodeInputTypes                           //Pointer to media type (Audio/Vorbis or Audio/Speex)
00089         } ,
00090 
00091         {
00092         L"PCM Output",                                          //Name (obsoleted)
00093         FALSE,                                                          //Renders from this pin ?? Not sure about this.
00094         TRUE,                                                           //Is 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,                                                                      //Only support one media type
00100         &FLACDecodeOutputTypes                                  //Pointer to media type (Audio/PCM)
00101 
00102         }
00103 };
00104 
00105 
00106 
00107 const REGFILTER2 FLACDecodeFilterReg = {
00108                 1,
00109                 MERIT_NORMAL,
00110                 2,
00111         FLACDecodePinReg
00112                 
00113 };

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