]>
git.ipfire.org Git - thirdparty/shairport-sync.git/blob - audio.h
9 double current_volume_dB
;
10 int minimum_volume_dB
;
11 int maximum_volume_dB
;
22 int (*init
)(int argc
, char **argv
, config_t
* cfgp
);
26 void (*start
)(int sample_rate
);
29 void (*play
)(short buf
[], int samples
);
32 // may be null if not implemented
35 // returns the delay before the next frame to be sent to the device would actually be audible.
36 // almost certainly wrong if the buffer is empty, so put silent buffers into it to make it busy.
37 // will change dynamically, so keep watching it. Implemented in ALSA only.
40 // may be NULL, in which case soft volume is applied
41 void (*volume
)(double vol
);
43 // may be NULL, in which case soft volume parameters are used
44 void (*parameters
)(audio_parameters
* info
);
47 audio_output
*audio_get_output(char *name
);
48 void audio_ls_outputs(void);