DeviceFinder: Add typedef DeviceList

This commit is contained in:
Jonas Kvinge
2023-06-01 18:43:43 +02:00
parent 8e14ef7c0c
commit a5a29f7ad3
15 changed files with 29 additions and 42 deletions

View File

@@ -21,7 +21,6 @@
#include <alsa/asoundlib.h>
#include <QList>
#include <QString>
#include <core/logging.h>
@@ -31,9 +30,9 @@
AlsaPCMDeviceFinder::AlsaPCMDeviceFinder() : DeviceFinder("alsa", { "alsa", "alsasink" }) {}
QList<DeviceFinder::Device> AlsaPCMDeviceFinder::ListDevices() {
DeviceFinder::DeviceList AlsaPCMDeviceFinder::ListDevices() {
QList<Device> ret;
DeviceList ret;
void **hints = nullptr;
if (snd_device_name_hint(-1, "pcm", &hints) < 0) {