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.
↧