audio: add missing array and element-type annotations for binary data

This commit is contained in:
Evan Nemerson 2012-07-04 14:00:14 -07:00 committed by Edward Hervey
parent fd91104636
commit 17815020fd
4 changed files with 11 additions and 9 deletions

View file

@ -435,7 +435,8 @@ gst_audio_format_get_info (GstAudioFormat format)
/**
* gst_audio_format_fill_silence:
* @info: a #GstAudioFormatInfo
* @dest: a destination to fill
* @dest: (array length=length) (element-type guint8): a destination
* to fill
* @length: the length to fill
*
* Fill @length bytes in @dest with silence samples for @info.

View file

@ -182,8 +182,8 @@ typedef enum
/**
* GstAudioFormatUnpack:
* @info: a #GstAudioFormatInfo
* @dest: a destination array
* @data: pointer to the audio data
* @dest: (array) (element-type guint8): a destination array
* @data: (array) (element-type guint8): pointer to the audio data
* @length: the amount of samples to unpack.
*
* Unpacks @length samples from the given data of format @info.
@ -197,8 +197,9 @@ typedef void (*GstAudioFormatUnpack) (const GstAudioFormatInfo *info,
/**
* GstAudioFormatPack:
* @info: a #GstAudioFormatInfo
* @src: a source array
* @data: pointer to the destination data
* @src: (array) (element-type guint8): a source array
* @data: (array) (element-type guint8): pointer to the destination
* data
* @length: the amount of samples to pack.
*
* Packs @length samples from @src to the data array in format @info.

View file

@ -128,10 +128,10 @@ gst_audio_iec61937_frame_size (const GstAudioRingBufferSpec * spec)
/**
* gst_audio_iec61937_payload:
* @src: a buffer containing the data to payload
* @src: (array length=src_n): a buffer containing the data to payload
* @src_n: size of @src in bytes
* @dst: the destination buffer to store the payloaded contents in. Should not
* overlap with @src
* @dst: (array length=dst_n): the destination buffer to store the
* payloaded contents in. Should not overlap with @src
* @dst_n: size of @dst in bytes
* @spec: the ringbufer spec for @src
*

View file

@ -43,7 +43,7 @@ typedef struct _GstAudioRingBufferSpec GstAudioRingBufferSpec;
/**
* GstAudioRingBufferCallback:
* @rbuf: a #GstAudioRingBuffer
* @data: target to fill
* @data: (array length=len): target to fill
* @len: amount to fill
* @user_data: user data
*