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

@@ -24,7 +24,6 @@
#include <CoreAudio/AudioHardware.h>
#include <QList>
#include <QString>
#include "core/logging.h"
@@ -64,9 +63,9 @@ std::unique_ptr<T> GetProperty(const AudioDeviceID &device_id, const AudioObject
MacOsDeviceFinder::MacOsDeviceFinder() : DeviceFinder("osxaudio", { "osxaudio", "osx", "osxaudiosink" }) {}
QList<DeviceFinder::Device> MacOsDeviceFinder::ListDevices() {
DeviceFinder::DeviceList MacOsDeviceFinder::ListDevices() {
QList<Device> ret;
DeviceList ret;
AudioObjectPropertyAddress address = {
kAudioHardwarePropertyDevices,