版本
menu_open
link

include/AK/Plugin/AkAudioInputSourceFactory.h

Go to the documentation of this file.
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_

此页面对您是否有帮助?

需要技术支持?

仍有疑问?或者问题?需要更多信息?欢迎联系我们,我们可以提供帮助!

查看我们的“技术支持”页面

介绍一下自己的项目。我们会竭力为您提供帮助。

来注册自己的项目,我们帮您快速入门,不带任何附加条件!

开始 Wwise 之旅