Moving mixers to audio outputs

This commit is contained in:
Viliam Mateicka
2008-12-31 16:46:41 +01:00
parent dd9af72a74
commit 9a70c4d06d
16 changed files with 686 additions and 459 deletions

View File

@@ -100,6 +100,12 @@ struct audio_output_plugin {
*/
void (*close)(void *data);
/**
* Control the device. Usualy used for implementing
* set and get mixer levels
*/
bool (*control)(void *data, int cmd, void *arg);
/**
* Display metadata for the next chunk. Optional method,
* because not all devices can display metadata.
@@ -118,6 +124,12 @@ enum audio_output_command {
AO_COMMAND_KILL
};
enum audio_control_command {
AC_MIXER_GETVOL = 0,
AC_MIXER_SETVOL,
AC_MIXER_CONFIGURE,
};
struct audio_output;
const char *audio_output_get_name(const struct audio_output *ao);