00001 00002 // 00003 // Copyright (c) 2006 Audiokinetic Inc. / All Rights Reserved 00004 // 00006 00007 // SceAudio3dMixerFactory.h 00008 00013 00014 #ifndef _SCE_AUDIO_3D_MIXER_FACTORY_H_ 00015 #define _SCE_AUDIO_3D_MIXER_FACTORY_H_ 00016 00017 #include <AK/SoundEngine/Common/IAkPlugin.h> 00018 00025 const unsigned long AKEFFECTID_SCE_AUDIO3D = 149; 00026 const unsigned long AKEFFECTID_SCE_AUDIO3D_ATTACHMENT = 150; 00027 const unsigned long AKEFFECTID_SCE_AUDIO3D_SINK = 151; 00028 const unsigned long AKEFFECTID_SCE_AUDIO3D_SINK_EFFECT = 165; 00029 00031 AK_FUNC( AK::IAkPluginParam *, CreateSceAudio3dMixerParams )( 00032 AK::IAkPluginMemAlloc * in_pAllocator 00033 ); 00034 00036 AK_FUNC( AK::IAkPlugin*, CreateSceAudio3dMixer )( 00037 AK::IAkPluginMemAlloc * in_pAllocator 00038 ); 00039 00041 AK_FUNC( AK::IAkPluginParam*, CreateSceAudio3dAttachment )( 00042 AK::IAkPluginMemAlloc * in_pAllocator 00043 ); 00044 00046 AK_FUNC( AK::IAkPluginParam *, CreateSceAudio3dSinkEffectParams )( 00047 AK::IAkPluginMemAlloc * in_pAllocator 00048 ); 00049 00051 AK_FUNC( AK::IAkPlugin*, CreateSceAudio3dSinkEffect )( 00052 AK::IAkPluginMemAlloc * in_pAllocator 00053 ); 00054 00056 AK_FUNC( AK::IAkPlugin*, CreateSceAudio3dSink )( 00057 AK::IAkPluginMemAlloc * in_pAllocator 00058 ); 00059 00060 /* 00061 Use the following code to register your plug-in 00062 00063 // Register mixer. 00064 AK::SoundEngine::RegisterPlugin( AkPluginTypeMixer, 00065 AKCOMPANYID_AUDIOKINETIC, 00066 AKEFFECTID_SCE_AUDIO3D, 00067 CreateSceAudio3dMixer, 00068 CreateSceAudio3dMixerParams ); 00069 00070 // Register attachment properties. 00071 AK::SoundEngine::RegisterPlugin( AkPluginTypeEffect, 00072 AKCOMPANYID_AUDIOKINETIC, 00073 AKEFFECTID_SCE_AUDIO3D_ATTACHMENT, 00074 NULL, 00075 CreateSceAudio3dAttachment ); 00076 00077 // Register sink attachment properties. 00078 AK::SoundEngine::RegisterPlugin( AkPluginTypeEffect, 00079 AKCOMPANYID_AUDIOKINETIC, 00080 AKEFFECTID_SCE_AUDIO3D_SINK_EFFECT, 00081 CreateSceAudio3dSinkEffect, 00082 CreateSceAudio3dSinkEffectParams ); 00083 00084 // And pass CreateSceAudio3dSink to AkInitSettings::settingsMainOutput::pfSinkPluginFactory when initializing the sound engine. 00085 AkInitSettings settings; 00086 AK::SoundEngine::GetDefaultInitSettings( settings ); 00087 settings.settingsMainOutput.pfSinkPluginFactory = CreateSceAudio3dSink; 00088 AK::SoundEngine::Init( &settings, &platformSettings ); 00089 */ 00090 00091 #endif // _SCE_AUDIO_3D_MIXER_FACTORY_H_ 00092
프로젝트를 등록하세요. 아무런 조건이나 의무 사항 없이 빠른 시작을 도와드리겠습니다.
Wwise를 시작해 보세요