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

@@ -29,7 +29,6 @@
#endif
#include <mmdeviceapi.h>
#include <QList>
#include <QVariant>
#include <QString>
@@ -43,11 +42,11 @@
MMDeviceFinder::MMDeviceFinder() : DeviceFinder("mmdevice", { "wasapisink" }) {}
QList<DeviceFinder::Device> MMDeviceFinder::ListDevices() {
DeviceFinder::DeviceList MMDeviceFinder::ListDevices() {
HRESULT hr_coinit = CoInitializeEx(NULL, COINIT_MULTITHREADED);
QList<Device> devices;
DeviceList devices;
Device default_device;
default_device.description = "Default device";
default_device.iconname = GuessIconName(default_device.description);