master ohmu/fastfetch-openbsd / src / detection / sound / sound.h
ohmu  ·  2026-10-15
 1#pragma once
 2
 3#include "fastfetch.h"
 4#include "modules/sound/option.h"
 5
 6#define FF_SOUND_VOLUME_UNKNOWN 255
 7
 8typedef struct FFSoundDevice {
 9    FFstrbuf identifier;
10    FFstrbuf name;
11    FFstrbuf platformApi;
12    uint8_t volume; // 0-100%
13    FFSoundType type;
14} FFSoundDevice;
15
16const char* ffDetectSound(FFSoundOptions* options, FFlist* devices /* List of FFSoundDevice */);