Sound: remove manufacturer detection

as it's only implemented on macOS
This commit is contained in:
李通洲
2023-01-31 22:39:27 +08:00
parent a92e6b6d91
commit 39f47d65a9
6 changed files with 1 additions and 22 deletions
+1 -3
View File
@@ -2,7 +2,7 @@
#include "detection/sound/sound.h"
#define FF_SOUND_MODULE_NAME "Sound"
#define FF_SOUND_NUM_FORMAT_ARGS 5
#define FF_SOUND_NUM_FORMAT_ARGS 4
static void printDevice(FFinstance* instance, const FFSoundDevice* device, uint8_t index)
{
@@ -27,7 +27,6 @@ static void printDevice(FFinstance* instance, const FFSoundDevice* device, uint8
{FF_FORMAT_ARG_TYPE_BOOL, &device->main},
{FF_FORMAT_ARG_TYPE_STRBUF, &device->name},
{FF_FORMAT_ARG_TYPE_UINT8, &device->volume},
{FF_FORMAT_ARG_TYPE_STRBUF, &device->manufacturer},
{FF_FORMAT_ARG_TYPE_STRBUF, &device->identifier}
});
}
@@ -79,6 +78,5 @@ void ffPrintSound(FFinstance* instance)
{
ffStrbufDestroy(&device->identifier);
ffStrbufDestroy(&device->name);
ffStrbufDestroy(&device->manufacturer);
}
}