Quantcast
Channel: Questions in topic: "native plugin"
Viewing all articles
Browse latest Browse all 376

Native audio Plugin SDK channels question

$
0
0
Can someone else confirm that whilst parameters such as sample rate (state->samplerate) and DSP buffer size (state->dspbuffersize) are available at the point UNITY_AUDIODSP_RESULT UNITY_AUDIODSP_CALLBACK CreateCallback(UnityAudioEffectState* state) is called, channel input data (e.g. 1 = mono, 2 = stereo, 8 = 7.1 surround etc.) isn't available? More importantly, why is this - when all mentioned parameters are accessible from Unity's AudioManager and seem to have default values? Is there a way around this, if one requires speaker setup info at the initialization of the plugin as opposed to when audio begins streaming? Thanks, Chris PS Input and output channel values are accessible once ProcessCallback is called (inchannels, outchannels), but this isn't ideal as a first point of access to channel info.

Viewing all articles
Browse latest Browse all 376

Trending Articles