Wwise SDK 2019.2.15
|
플러그인 미디어 시스템을 이용하면 플러그인(효과, 음원, 싱크, 믹서)에서 Wwise 아키텍처를 활용해 프로젝트 내 이진 데이터 파일을 저장할 수 있습니다.
플러그인에서 커스텀 데이터를 사용하는 대신 플러그인 미디어를 사용하면 다음과 같은 다양한 장점이 있습니다.
Override the function AK::Wwise::IAudioPlugin::SetPluginObjectMedia
and store the pointer for later use. This function will be called at the initialization of the Wwise plug-in (authoring side). By implementing this function, you will receive an interface to an IPluginObjectMedia*
, which allows to you to manage media files.
You can import media files by calling AK::Wwise::IPluginObjectMedia::SetMediaSource
. When importing media, they will be copied to the plug-in's Original directory and will be managed completely by Wwise. 인덱스 0에서 플러그인 미디어 파일을 추가하려면:
Later, you can call AK::Wwise::IPluginObjectMedia::InvalidateMediaSource
to request a conversion of the media files. Override the function to be notified when the plug-in data changes.
더 자세한 정보는 AK::Wwise::IPluginObjectMedia
의 함수에 대한 문서를 참고하세요.
You may want to convert your media for runtime. To implement conversion functions, you need to inherit from AK::Wwise::IPluginMediaConverter
and implement the required functions (including ConvertFile
and GetCurrentConversionSettingsHash
) that will allow you to convert your imported original WAV to an appropriate format for the real-time component.
Once you implement all functions in AK::Wwise::IPluginMediaConverter
, you can override the function GetPluginMediaConverterInterface()
to tell Wwise you want to convert your media.
다음은 AK::Wwise::IPluginMediaConverter
함수의 구현 예제입니다.
플러그인 정의 파일에서 CanReferenceDataFile
이 반드시 true
로 돼있는지 확인하세요.
In the real-time component of your plug-in, when implementing AK::IAkEffectPlugin
, you will receive an AK::IAkEffectPluginContext
pointer in the Init(...)
function. From the AK::IAkEffectPluginContext
, you can call AK::IAkPluginContextBase::GetPluginMedia
to obtain the converted media that was packaged in Wwise SoundBanks.
![]() |
참고: 이 예제에서는 런타임 때 effect 플러그인 미디어를 사용하는 방법을 설명합니다. However, it could just as easily be illustrating how to use another plug-in type, such as a source plug-in. In that case, you'd be implementing AK::IAkSourcePlugin and receiving an AK::IAkSourcePluginContext pointer. |
Wwise에서, 모든 Effect는 Init.bnk에 저장됩니다. To avoid having the Init.bnk be too large, the plug-in media is not automatically added to Init.bnk. You will need to manually add the Effect ShareSet or the bus to a separate SoundBank.
프로젝트를 등록하세요. 아무런 조건이나 의무 사항 없이 빠른 시작을 도와드리겠습니다.
Wwise를 시작해 보세요