From 581174ef98e92de89244412ddc94ae93d172e69c Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 24 Apr 2021 09:03:14 -0700 Subject: Use the DeviceBase for the backend --- alc/backends/pulseaudio.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'alc/backends/pulseaudio.cpp') diff --git a/alc/backends/pulseaudio.cpp b/alc/backends/pulseaudio.cpp index bf3fc18e..39eed771 100644 --- a/alc/backends/pulseaudio.cpp +++ b/alc/backends/pulseaudio.cpp @@ -282,7 +282,7 @@ al::optional ChannelFromPulse(pa_channel_position_t chan) return al::nullopt; } -void SetChannelOrderFromMap(ALCdevice *device, const pa_channel_map &chanmap) +void SetChannelOrderFromMap(DeviceBase *device, const pa_channel_map &chanmap) { device->RealOut.ChannelIndex.fill(INVALID_CHANNEL_INDEX); for(uint i{0};i < chanmap.channels;++i) @@ -655,7 +655,7 @@ PulseMainloop gGlobalMainloop; struct PulsePlayback final : public BackendBase { - PulsePlayback(ALCdevice *device) noexcept : BackendBase{device} { } + PulsePlayback(DeviceBase *device) noexcept : BackendBase{device} { } ~PulsePlayback() override; void bufferAttrCallback(pa_stream *stream) noexcept; @@ -1108,7 +1108,7 @@ ClockLatency PulsePlayback::getClockLatency() struct PulseCapture final : public BackendBase { - PulseCapture(ALCdevice *device) noexcept : BackendBase{device} { } + PulseCapture(DeviceBase *device) noexcept : BackendBase{device} { } ~PulseCapture() override; void streamStateCallback(pa_stream *stream) noexcept; @@ -1510,7 +1510,7 @@ std::string PulseBackendFactory::probe(BackendType type) return outnames; } -BackendPtr PulseBackendFactory::createBackend(ALCdevice *device, BackendType type) +BackendPtr PulseBackendFactory::createBackend(DeviceBase *device, BackendType type) { if(type == BackendType::Playback) return BackendPtr{new PulsePlayback{device}}; -- cgit v1.2.3