diff options
Diffstat (limited to 'src/modules/sound/option.h')
| -rw-r--r-- | src/modules/sound/option.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/modules/sound/option.h b/src/modules/sound/option.h new file mode 100644 index 0000000..9892569 --- /dev/null +++ b/src/modules/sound/option.h @@ -0,0 +1,21 @@ +#pragma once + +#include "common/option.h" +#include "common/percent.h" + +typedef enum FF_A_PACKED FFSoundType { + FF_SOUND_TYPE_NONE = 0, + FF_SOUND_TYPE_MAIN = 1 << 0, + FF_SOUND_TYPE_ACTIVE = 1 << 1, +} FFSoundType; + +typedef struct FFSoundOptions { + FFModuleArgs moduleArgs; + + // Reports matched device only, otherwise reports all devices + // NOTE: for FF_SOUND_TYPE_NONE, reports all devices + FFSoundType soundType; + FFPercentageModuleConfig percent; +} FFSoundOptions; + +static_assert(sizeof(FFSoundOptions) <= FF_OPTION_MAX_SIZE, "FFSoundOptions size exceeds maximum allowed size"); |