Cleanup audio format

This commit is contained in:
Wim Taymans 2016-09-08 12:32:30 +02:00
parent b901c2c67d
commit a5f21576fa
6 changed files with 21 additions and 15 deletions

View file

@ -30,13 +30,13 @@ extern "C" {
typedef struct _SpaFormatAudio SpaFormatAudio;
typedef enum {
SPA_PROP_ID_AUDIO_FORMAT = SPA_PROP_ID_MEDIA_CUSTOM_START,
SPA_PROP_ID_AUDIO_INFO = SPA_PROP_ID_MEDIA_CUSTOM_START,
SPA_PROP_ID_AUDIO_FORMAT,
SPA_PROP_ID_AUDIO_FLAGS,
SPA_PROP_ID_AUDIO_LAYOUT,
SPA_PROP_ID_AUDIO_RATE,
SPA_PROP_ID_AUDIO_CHANNELS,
SPA_PROP_ID_AUDIO_CHANNEL_MASK,
SPA_PROP_ID_AUDIO_INFO_RAW,
} SpaPropIdAudio;
SpaResult spa_prop_info_fill_audio (SpaPropInfo *info,

View file

@ -72,6 +72,7 @@ typedef struct {
* @SPA_PROP_FLAG_WRITABLE: property is writable
* @SPA_PROP_FLAG_READWRITE: property is readable and writable
* @SPA_PROP_FLAG_DEPRECATED: property is deprecated and should not be used
* @SPA_PROP_FLAG_INFO: property is to get/set the complete structure
*/
typedef enum {
SPA_PROP_FLAG_NONE = 0,
@ -80,6 +81,7 @@ typedef enum {
SPA_PROP_FLAG_WRITABLE = (1 << 2),
SPA_PROP_FLAG_READWRITE = SPA_PROP_FLAG_READABLE | SPA_PROP_FLAG_WRITABLE,
SPA_PROP_FLAG_DEPRECATED = (1 << 3),
SPA_PROP_FLAG_INFO = (1 << 4),
} SpaPropFlags;
/* SpaPropRangeType: