Function steam_audio::ffi::iplApplyPanningEffect [] [src]

pub unsafe extern "C" fn iplApplyPanningEffect(
    effect: IPLhandle,
    inputAudio: IPLAudioBuffer,
    direction: IPLVector3,
    outputAudio: IPLAudioBuffer
) -> IPLvoid

Applies 3D panning to a buffer of audio data, using the configuration of a Panning Effect object. The input audio is treated as emanating from a single point. If the input audio buffer contains more than one channel, it will automatically be downmixed to mono.

\param effect Handle to a Panning Effect object. \param inputAudio Audio buffer containing the data to render using 3D panning. The format of this buffer must match the \c inputFormat parameter passed to \c ::iplCreatePanningEffect. \param direction Unit vector from the listener to the point source, relative to the listener's coordinate system. \param outputAudio Audio buffer that should contain the rendered audio data. The format of this buffer must match the \c outputFormat parameter passed to \c ::iplCreatePanningEffect.