Files
fastfetch/src/modules/sound/option.h
T
2026-07-10 18:09:46 +08:00

22 lines
600 B
C

#pragma once
#include "common/option.h"
#include "common/percent.h"
typedef enum FFSoundType: uint8_t {
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");