swrconvert
swr_convert is a function in FFmpeg’s libswresample API that performs audio data conversion. It handles sample rate changes, sample format conversion, and channel layout or interleaving adjustments according to a configured SwrContext. The function is commonly used when an application needs to resample and reformat audio streams without relying on a specific container or file format.
The operation requires a SwrContext that has been configured with the desired input and output parameters,
Usage pattern usually involves allocating and configuring the SwrContext, preparing input and output buffers, and repeatedly
Notes: swr_convert is a low-level API utility; it requires careful buffer management and awareness of potential