diff options
author | Viliam Mateicka <viliam.mateicka@gmail.com> | 2008-12-31 16:46:41 +0100 |
---|---|---|
committer | Viliam Mateicka <viliam.mateicka@gmail.com> | 2008-12-31 16:46:41 +0100 |
commit | 9a70c4d06d51cca24dfb93847d1f82187d454e31 (patch) | |
tree | 444672f0ab76eca96692560201287d6f7a1a73b5 /src/output_api.h | |
parent | dd9af72a744d9c93966f5088931d7edbf28e1d1d (diff) |
Moving mixers to audio outputs
Diffstat (limited to 'src/output_api.h')
-rw-r--r-- | src/output_api.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/output_api.h b/src/output_api.h index 7cefea77e..fb4b096a1 100644 --- a/src/output_api.h +++ b/src/output_api.h @@ -101,6 +101,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); |