00001 00002 // 00003 // Copyright (c) 2006 Audiokinetic Inc. / All Rights Reserved 00004 // 00006 // AkAudioInputSourceFactory.h 00007 00012 00013 #ifndef _AK_AUDIOINPUTSOURCEFACTORY_H_ 00014 #define _AK_AUDIOINPUTSOURCEFACTORY_H_ 00015 00016 #include <AK/SoundEngine/Common/IAkPlugin.h> 00017 00024 const AkUInt32 AKSOURCEID_AUDIOINPUT = 200; 00025 00027 AK_EXTERNAPIFUNC( AK::IAkPluginParam *, CreateAudioInputSourceParams )( 00028 AK::IAkPluginMemAlloc * in_pAllocator 00029 ); 00030 00032 AK_EXTERNAPIFUNC( AK::IAkPlugin*, CreateAudioInputSource )( 00033 AK::IAkPluginMemAlloc * in_pAllocator 00034 ); 00035 00037 // API external to the plug-in, to be used by the game. 00038 00042 AK_CALLBACK( void, AkAudioInputPluginGetFormatCallbackFunc )( 00043 AkPlayingID in_playingID, 00044 AkAudioFormat& io_AudioFormat 00045 ); 00046 00049 AK_CALLBACK( AkReal32, AkAudioInputPluginGetGainCallbackFunc )( 00050 AkPlayingID in_playingID 00051 ); 00052 00058 AK_CALLBACK( void, AkAudioInputPluginExecuteCallbackFunc )( 00059 AkPlayingID in_playingID, 00060 AkAudioBuffer* io_pBufferOut 00061 ); 00062 00064 AK_EXTERNAPIFUNC( void, SetAudioInputCallbacks )( 00065 AkAudioInputPluginExecuteCallbackFunc in_pfnExecCallback, 00066 AkAudioInputPluginGetFormatCallbackFunc in_pfnGetFormatCallback = NULL, // Optional 00067 AkAudioInputPluginGetGainCallbackFunc in_pfnGetGainCallback = NULL // Optional 00068 ); 00070 00071 /* 00072 Use the following code to register your plug-in 00073 00074 AK::SoundEngine::RegisterPlugin( AkPluginTypeSource, 00075 AKCOMPANYID_AUDIOKINETIC, 00076 AKSOURCEID_AUDIOINPUT, 00077 CreateAudioInputSource, 00078 CreateAudioInputSourceParams ); 00079 */ 00080 00081 #endif // _AK_AUDIOINPUTSOURCEFACTORY_H_
Questions? Problems? Need more info? Contact us, and we can help!
Visit our Support pageRegister your project and we'll help you get started with no strings attached!
Get started with Wwise