samples


Description:

public bool samples (ConverterFlags flags, void* @in, size_t in_frames, void* @out, size_t out_frames)

Perform the conversion with in_frames in in to out_frames in out using this.

In case the samples are interleaved, in and out must point to an array with a single element pointing to a block of interleaved samples.

If non-interleaved samples are used, in and out must point to an array with pointers to memory blocks, one for each channel.

in may be null, in which case in_frames of silence samples are processed by the converter.

This function always produces out_frames of output and consumes in_frames of input. Use get_out_frames and get_in_frames to make sure in_frames and out_frames are matching and in and out point to enough memory.

Parameters:

this

a Converter

flags

extra ConverterFlags

in_frames

number of input frames

out_frames

number of output frames

in

input frames

out

output frames

Returns:

true is the conversion could be performed.




2022 vala-language.org