AudioInfo.convert

Converts among various #GstFormat types. This function handles GST_FORMAT_BYTES, GST_FORMAT_TIME, and GST_FORMAT_DEFAULT. For raw audio, GST_FORMAT_DEFAULT corresponds to audio frames. This function can be used to handle pad queries of the type GST_QUERY_CONVERT.

class AudioInfo
bool
convert

Parameters

srcFmt gst.types.Format

#GstFormat of the src_val

srcVal long

value to convert

destFmt gst.types.Format

#GstFormat of the dest_val

destVal long

pointer to destination value

Return Value

Type: bool

TRUE if the conversion was successful.