summaryrefslogtreecommitdiffstats
path: root/src/detection/sound/sound.h
blob: 041e6a1f8004cf17b4992690b890d5f8492a832f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#pragma once

#include "fastfetch.h"
#include "modules/sound/option.h"

#define FF_SOUND_VOLUME_UNKNOWN 255

typedef struct FFSoundDevice {
    FFstrbuf identifier;
    FFstrbuf name;
    FFstrbuf platformApi;
    uint8_t volume; // 0-100%
    FFSoundType type;
} FFSoundDevice;

const char* ffDetectSound(FFSoundOptions* options, FFlist* devices /* List of FFSoundDevice */);