Add EngineDevice class

This commit is contained in:
Jonas Kvinge
2023-06-01 19:31:19 +02:00
parent a1dbbba1a1
commit 315073f9a7
20 changed files with 170 additions and 111 deletions

View File

@@ -27,17 +27,18 @@
#include <rpc.h>
#include "devicefinder.h"
#include "enginedevice.h"
class DirectSoundDeviceFinder : public DeviceFinder {
public:
explicit DirectSoundDeviceFinder();
virtual bool Initialize() { return true; }
virtual DeviceList ListDevices();
virtual EngineDeviceList ListDevices();
private:
struct State {
DeviceList devices;
EngineDeviceList devices;
};
static BOOL CALLBACK EnumerateCallback(LPGUID guid, LPCSTR description, LPCSTR module, LPVOID state_voidptr);