audioconvert: add support of volume ramp scale parameter

- Add support for Linear and Cubic volume scales
- Also start treating a "zero" value of volume ramp parameters as invalid
This commit is contained in:
Ashok Sidipotu 2023-03-28 10:38:41 +05:30 committed by Wim Taymans
parent 7b91d506f1
commit 8bfafaeca2
3 changed files with 78 additions and 47 deletions

View file

@ -261,6 +261,11 @@ enum spa_audio_channel {
SPA_AUDIO_CHANNEL_START_Custom = 0x10000,
};
enum spa_audio_volume_ramp_scale {
SPA_AUDIO_VOLUME_RAMP_LINEAR,
SPA_AUDIO_VOLUME_RAMP_CUBIC,
};
/** Extra audio flags */
#define SPA_AUDIO_FLAG_NONE (0) /*< no valid flag */
#define SPA_AUDIO_FLAG_UNPOSITIONED (1 << 0) /*< the position array explicitly