diff options
author | Lennart Poettering <lennart@poettering.net> | 2008-12-24 00:45:06 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2008-12-24 00:45:06 +0100 |
commit | 6342053b34ab2f8addd2ed74cd965ec794ee50d4 (patch) | |
tree | 7e78a6e209ba1ce0cd27498210909adaa2ccc229 /src/pulse/volume.h | |
parent | c2bd8dc517f825858e747343bd9fc3a88ac75776 (diff) | |
download | pulseaudio-6342053b34ab2f8addd2ed74cd965ec794ee50d4.tar.gz |
Add new API functions pa_volume_snprint() and pa_sw_volume_snprint_dB()
Diffstat (limited to 'src/pulse/volume.h')
-rw-r--r-- | src/pulse/volume.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/pulse/volume.h b/src/pulse/volume.h index 75051af5a..5815c9063 100644 --- a/src/pulse/volume.h +++ b/src/pulse/volume.h @@ -150,6 +150,26 @@ char *pa_cvolume_snprint(char *s, size_t l, const pa_cvolume *c); /** Pretty print a volume structure but show dB values. \since 0.9.13 */ char *pa_sw_cvolume_snprint_dB(char *s, size_t l, const pa_cvolume *c); +/** Maximum length of the strings returned by + * pa_volume_snprint(). Please note that this value can change with + * any release without warning and without being considered API or ABI + * breakage. You should not use this definition anywhere where it + * might become part of an ABI. \since 0.9.14 */ +#define PA_VOLUME_SNPRINT_MAX 10 + +/** Pretty print a volume \since 0.9.14 */ +char *pa_volume_snprint(char *s, size_t l, pa_volume_t v); + +/** Maximum length of the strings returned by + * pa_volume_snprint_dB(). Please note that this value can change with + * any release without warning and without being considered API or ABI + * breakage. You should not use this definition anywhere where it + * might become part of an ABI. \since 0.9.14 */ +#define PA_SW_VOLUME_SNPRINT_DB_MAX 10 + +/** Pretty print a volume but show dB values. \since 0.9.14 */ +char *pa_sw_volume_snprint_dB(char *s, size_t l, pa_volume_t v); + /** Return the average volume of all channels */ pa_volume_t pa_cvolume_avg(const pa_cvolume *a) PA_GCC_PURE; |