Improve metadata output -- maybe it works reliably now. Add call to get audio parameters from back ends, to be able to give volume metadata.

This commit is contained in:
Mike Brady
2015-03-16 11:11:54 +00:00
parent 606c3fd080
commit a2790fc102
10 changed files with 83 additions and 25 deletions
+13
View File
@@ -3,6 +3,16 @@
#include <stdint.h>
typedef struct {
double airplay_volume;
double current_volume_dB;
int minimum_volume_dB;
int maximum_volume_dB;
int has_true_mute;
int is_muted;
int valid;
} audio_parameters;
typedef struct {
void (*help)(void);
char *name;
@@ -28,6 +38,9 @@ typedef struct {
// may be NULL, in which case soft volume is applied
void (*volume)(double vol);
// may be NULL, in which case soft volume parameters are used
void (*parameters)(audio_parameters* info);
} audio_output;
audio_output *audio_get_output(char *name);