diff options
author | Chris Robinson <[email protected]> | 2021-04-24 09:03:14 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2021-04-24 09:03:14 -0700 |
commit | 581174ef98e92de89244412ddc94ae93d172e69c (patch) | |
tree | 4c818d345ed460a2656bff8ce9355e36c6e3ba26 /alc/backends/alsa.cpp | |
parent | b54bb388a3dbd92518beef4bda03df5854aad1a9 (diff) |
Use the DeviceBase for the backend
Diffstat (limited to 'alc/backends/alsa.cpp')
-rw-r--r-- | alc/backends/alsa.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/alc/backends/alsa.cpp b/alc/backends/alsa.cpp index 1153b99a..a6c7e178 100644 --- a/alc/backends/alsa.cpp +++ b/alc/backends/alsa.cpp @@ -408,7 +408,7 @@ int verify_state(snd_pcm_t *handle) struct AlsaPlayback final : public BackendBase { - AlsaPlayback(ALCdevice *device) noexcept : BackendBase{device} { } + AlsaPlayback(DeviceBase *device) noexcept : BackendBase{device} { } ~AlsaPlayback() override; int mixerProc(); @@ -868,7 +868,7 @@ ClockLatency AlsaPlayback::getClockLatency() struct AlsaCapture final : public BackendBase { - AlsaCapture(ALCdevice *device) noexcept : BackendBase{device} { } + AlsaCapture(DeviceBase *device) noexcept : BackendBase{device} { } ~AlsaCapture() override; void open(const char *name) override; @@ -1257,7 +1257,7 @@ std::string AlsaBackendFactory::probe(BackendType type) return outnames; } -BackendPtr AlsaBackendFactory::createBackend(ALCdevice *device, BackendType type) +BackendPtr AlsaBackendFactory::createBackend(DeviceBase *device, BackendType type) { if(type == BackendType::Playback) return BackendPtr{new AlsaPlayback{device}}; |