版本

menu_open
Wwise SDK 2018.1.11

◆ ConsumeInput()

virtual void AK::IAkMixerEffectPlugin::ConsumeInput ( IAkMixerInputContext in_pInputContext,
AkRamp  in_baseVolume,
AkRamp  in_emitListVolume,
AkAudioBuffer io_pInputBuffer,
AkAudioBuffer io_pMixBuffer 
)
pure virtual

This function is called whenever an input (voice or bus) needs to be mixed. During an audio frame, ConsumeInput() will be called for each input that need to be mixed.

Note: io_pInputBuffer->eState will be set as AK_NoMoreData the last time the given input is processed by ConsumeInput(). Otherwise it is set to AK_DataReady. Mixers cannot make an input remain alive by changing their state.
Note: ConsumeInput() will not be called for frames during which a voice is not audible.
参见
参数
in_pInputContext Context for this input. Carries non-audio data.
in_baseVolume Base volume to apply to this input (prev corresponds to the beginning, next corresponds to the end of the buffer). This gain is agnostic of emitter-listener pair-specific contributions (such as distance level attenuation).
in_emitListVolume Emitter-listener pair-specific gain. When there are multiple emitter-listener pairs, this volume equals 1, and pair gains are applied directly on the channel volume matrix (accessible via IAkMixerInputContext::GetSpatializedVolumes()). For custom processing of emitter-listener pairs, one should query each pair volume using IAkMixerInputContext::Get3DPosition(), then AkEmitterListenerPair::GetGainForConnectionType().
io_pInputBuffer Input audio buffer data structure. Plugins should avoid processing data in-place.
io_pMixBuffer Output audio buffer data structure. Stored until call to OnEffectsProcessed().

此页面对您是否有帮助?

需要技术支持?

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

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

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

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

开始 Wwise 之旅