//////////////////////////////////////////////////////////////////////////// /// /// Set Default FrameBase style TRANSFORM command for AudioDecoder MT /// with 1 Input Buffer and 1 Output Buffer. void Codec_MmeAudio_c::SetCommandIO(void) { PresetIOBuffers(); // FrameBase Transformer :: 1 Input Buffer / 1 Output Buffer sent through same MME_TRANSFORM DecodeContext->MMECommand.NumberInputBuffers = 1; DecodeContext->MMECommand.NumberOutputBuffers = 1; DecodeContext->MMECommand.DataBuffers_p = DecodeContext->MMEBufferList; }
void Codec_MmeAudioSpdifin_c::SetCommandIO(void) { SpdifinAudioCodecDecodeContext_t *Context = (SpdifinAudioCodecDecodeContext_t *)DecodeContext; // Attach both I/O buffers to DecodeContext. PresetIOBuffers(); // StreamBase Transformer : 1 Input Buffer sent through SEND_BUFFER / 1 Output Buffer sent through MME_TRANSFORM // Prepare SEND_BUFFER Command to transmit Input Buffer Context->BufferCommand.NumberInputBuffers = 1; Context->BufferCommand.NumberOutputBuffers = 0; Context->BufferCommand.DataBuffers_p = &DecodeContext->MMEBufferList[0]; // Prepare MME_TRANSFORM Command to transmit Output Buffer DecodeContext->MMECommand.NumberInputBuffers = 0; DecodeContext->MMECommand.NumberOutputBuffers = 1; DecodeContext->MMECommand.DataBuffers_p = &DecodeContext->MMEBufferList[1]; // // Load the parameters into MME SendBuffer command // FillOutSendBufferCommand(); }