Debian Codegraph @

components/encoder/coreaudioconnect/connector/dllinterface.h

raw symbols SCIP
1 /* BoCA - BonkEnc Component Architecture
2 * Copyright (C) 2007-2022 Robert Kausch <[email protected]>
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation, either version 2 of
7 * the License, or (at your option) any later version.
8 *
9 * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
10 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
11 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. */
12
13 #include <windows.h>
14
15 namespace CA
16 {
17 #include <AudioToolbox/AudioFile.h>
18 #include <AudioToolbox/AudioConverter.h>
19 #include <AudioToolbox/AudioFormat.h>
20 };
21
22 extern HINSTANCE coreaudiodll;
23
24 bool LoadCoreAudioDLL(const char *);
25 void FreeCoreAudioDLL();
26
27 namespace CA
28 {
29 typedef OSStatus (*AUDIOFILEINITIALIZEWITHCALLBACKS) (void *, AudioFile_ReadProc, AudioFile_WriteProc, AudioFile_GetSizeProc, AudioFile_SetSizeProc, AudioFileTypeID, const AudioStreamBasicDescription *, UInt32, AudioFileID *);
30 typedef OSStatus (*AUDIOFILECLOSE) (AudioFileID);
31 typedef OSStatus (*AUDIOFILESETPROPERTY) (AudioFileID, AudioFilePropertyID, UInt32, const void *);
32 typedef OSStatus (*AUDIOFILEWRITEPACKETS) (AudioFileID, Boolean, UInt32, const AudioStreamPacketDescription *, SInt64, UInt32 *, const void *);
33
34 typedef OSStatus (*AUDIOCONVERTERNEW) (const AudioStreamBasicDescription *, const AudioStreamBasicDescription *, AudioConverterRef *);
35 typedef OSStatus (*AUDIOCONVERTERDISPOSE) (AudioConverterRef);
36 typedef OSStatus (*AUDIOCONVERTERGETPROPERTY) (AudioConverterRef, AudioConverterPropertyID, UInt32 *, void *);
37 typedef OSStatus (*AUDIOCONVERTERGETPROPERTYINFO) (AudioConverterRef, AudioConverterPropertyID, UInt32 *, Boolean *);
38 typedef OSStatus (*AUDIOCONVERTERSETPROPERTY) (AudioConverterRef, AudioConverterPropertyID, UInt32, const void *);
39 typedef OSStatus (*AUDIOCONVERTERFILLCOMPLEXBUFFER) (AudioConverterRef, AudioConverterComplexInputDataProc, void *, UInt32 *, AudioBufferList *, AudioStreamPacketDescription *);
40
41 typedef OSStatus (*AUDIOFORMATGETPROPERTY) (AudioFormatPropertyID, UInt32, const void *, UInt32 *, void *);
42 typedef OSStatus (*AUDIOFORMATGETPROPERTYINFO) (AudioFormatPropertyID, UInt32, const void *, UInt32 *);
43
44 extern AUDIOFILEINITIALIZEWITHCALLBACKS AudioFileInitializeWithCallbacks;
45 extern AUDIOFILECLOSE AudioFileClose;
46 extern AUDIOFILESETPROPERTY AudioFileSetProperty;
47 extern AUDIOFILEWRITEPACKETS AudioFileWritePackets;
48
49 extern AUDIOCONVERTERNEW AudioConverterNew;
50 extern AUDIOCONVERTERDISPOSE AudioConverterDispose;
51 extern AUDIOCONVERTERGETPROPERTY AudioConverterGetProperty;
52 extern AUDIOCONVERTERGETPROPERTYINFO AudioConverterGetPropertyInfo;
53 extern AUDIOCONVERTERSETPROPERTY AudioConverterSetProperty;
54 extern AUDIOCONVERTERFILLCOMPLEXBUFFER AudioConverterFillComplexBuffer;
55
56 extern AUDIOFORMATGETPROPERTY AudioFormatGetProperty;
57 extern AUDIOFORMATGETPROPERTYINFO AudioFormatGetPropertyInfo;
58 };