AudioFormat.buildInteger

Construct a #GstAudioFormat with given parameters.

struct AudioFormat
static
buildInteger
(
bool sign
,,
int width
,
int depth
)

Parameters

sign bool

signed or unsigned format

endianness int

G_LITTLE_ENDIAN or G_BIG_ENDIAN

width int

amount of bits used per sample

depth int

amount of used bits in width

Return Value

Type: gstaudio.types.AudioFormat

a #GstAudioFormat or GST_AUDIO_FORMAT_UNKNOWN when no audio format exists with the given parameters.