AudioFormat.buildInteger

gstaudio.types.AudioFormat buildInteger(bool sign, int endianness, int width, int depth)

Construct a #GstAudioFormat with given parameters.

Parameters

signsigned or unsigned format
endiannessG_LITTLE_ENDIAN or G_BIG_ENDIAN
widthamount of bits used per sample
depthamount of used bits in width

Returns

a #GstAudioFormat or GST_AUDIO_FORMAT_UNKNOWN when no audio format

exists with the given parameters.