AudioInfo.convert
bool convert(gst.types.Format srcFmt, long srcVal, gst.types.Format destFmt, out long destVal)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.
Parameters
srcFmt | #GstFormat of the src_val |
srcVal | value to convert |
destFmt | #GstFormat of the dest_val |
destVal | pointer to destination value |
Returns
TRUE if the conversion was successful.