This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

what is the main using of control in codec engine

hi,

   I read examples fo codec engine,find that control function like AUDDECCOPY_TI_control just set some parameters and return them back,but i can set them in the app.c too.Could i ignore control function and just use process?if donot,what is the relation between control and process,i mean how process function get these parameters' value,because in app.c'sprocess ,it doesn't input decDynParams and decStatus's value.

  • qinbin wang,

    The process call is used to encode/decode a continuous stream of data. With each process call, some codec parameters may be modified to alter the behavior of the codec. However, not all codec parameters a supported in the process call. The control call is optional, but it can be used between process calls to modify the dynamic properties of the codec. In other word, the control call allows you to modify the behavior of the codec during the processing phase.

    The AUDDECCOPY_TI_control function provided with the Codec Engine examples is simply a sample implementation. In a "real" codec, the control call will return the current codec state (for a query call) or modify the codec state (for a set call).

    ~ Ramsey