AudioCodecReset(_:)
Flushes all the audio data in the codec and clears the input buffer.
Declaration
func AudioCodecReset(_ inCodec: AudioCodec) -> OSStatusParameters
- inCodec:
An audio codec object. Because an audio codec object is a Component Manger component instance, you can use the Component Manager (for example, the functions 1516552 Findnextcomponent and OpenAComponent) to obtain an audio codec object.
Return Value
Returns NoErr if successful, otherwise, a result code. See Result Codes for a list of possible values.
Discussion
The input and output formats, magic cookie data, and other state variables are retained so that you needn’t call the AudioCodecInitialize(_:_:_:_:_:) function again unless the values of some variables have changed.