avresample_convert

Convert input samples and write them to the output FIFO.

The upper bound on the number of output samples can be obtained through avresample_get_out_samples().

The output data can be NULL or have fewer allocated samples than required. In this case, any remaining samples not written to the output will be added to an internal FIFO buffer, to be returned at the next call to this function or to avresample_read().

If converting sample rate, there may be data remaining in the internal resampling delay buffer. avresample_get_delay() tells the number of remaining samples. To get this data as output, call avresample_convert() with NULL input.

At the end of the conversion process, there may be data remaining in the internal FIFO buffer. avresample_available() tells the number of remaining samples. To get this data as output, either call avresample_convert() with NULL input or call avresample_read().

@see avresample_get_out_samples() @see avresample_read() @see avresample_get_delay()

@param avr audio resample context @param output output data pointers @param out_plane_size output plane size, in bytes. This can be 0 if unknown, but that will lead to optimized functions not being used directly on the output, which could slow down some conversions. @param out_samples maximum number of samples that the output buffer can hold @param input input data pointers @param in_plane_size input plane size, in bytes This can be 0 if unknown, but that will lead to optimized functions not being used directly on the input, which could slow down some conversions. @param in_samples number of input samples to convert @return number of samples written to the output buffer, not including converted samples added to the internal output FIFO

@nogc nothrow extern (C)
int
avresample_convert

Meta