aboutsummaryrefslogtreecommitdiffstats
path: root/alc/backends/loopback.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'alc/backends/loopback.cpp')
-rw-r--r--alc/backends/loopback.cpp25
1 files changed, 12 insertions, 13 deletions
diff --git a/alc/backends/loopback.cpp b/alc/backends/loopback.cpp
index 511061f3..bf4ab246 100644
--- a/alc/backends/loopback.cpp
+++ b/alc/backends/loopback.cpp
@@ -20,39 +20,38 @@
#include "config.h"
-#include "backends/loopback.h"
+#include "loopback.h"
-#include "alcmain.h"
-#include "alu.h"
+#include "core/device.h"
namespace {
struct LoopbackBackend final : public BackendBase {
- LoopbackBackend(ALCdevice *device) noexcept : BackendBase{device} { }
+ LoopbackBackend(DeviceBase *device) noexcept : BackendBase{device} { }
- void open(const ALCchar *name) override;
+ void open(const char *name) override;
bool reset() override;
- bool start() override;
+ void start() override;
void stop() override;
DEF_NEWDEL(LoopbackBackend)
};
-void LoopbackBackend::open(const ALCchar *name)
+void LoopbackBackend::open(const char *name)
{
mDevice->DeviceName = name;
}
bool LoopbackBackend::reset()
{
- SetDefaultWFXChannelOrder(mDevice);
+ setDefaultWFXChannelOrder();
return true;
}
-bool LoopbackBackend::start()
-{ return true; }
+void LoopbackBackend::start()
+{ }
void LoopbackBackend::stop()
{ }
@@ -66,10 +65,10 @@ bool LoopbackBackendFactory::init()
bool LoopbackBackendFactory::querySupport(BackendType)
{ return true; }
-void LoopbackBackendFactory::probe(DevProbe, std::string*)
-{ }
+std::string LoopbackBackendFactory::probe(BackendType)
+{ return std::string{}; }
-BackendPtr LoopbackBackendFactory::createBackend(ALCdevice *device, BackendType)
+BackendPtr LoopbackBackendFactory::createBackend(DeviceBase *device, BackendType)
{ return BackendPtr{new LoopbackBackend{device}}; }
BackendFactory &LoopbackBackendFactory::getFactory()