aboutsummaryrefslogtreecommitdiffstats
path: root/alc/backends/pulseaudio.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2021-04-24 09:03:14 -0700
committerChris Robinson <[email protected]>2021-04-24 09:03:14 -0700
commit581174ef98e92de89244412ddc94ae93d172e69c (patch)
tree4c818d345ed460a2656bff8ce9355e36c6e3ba26 /alc/backends/pulseaudio.cpp
parentb54bb388a3dbd92518beef4bda03df5854aad1a9 (diff)
Use the DeviceBase for the backend
Diffstat (limited to 'alc/backends/pulseaudio.cpp')
-rw-r--r--alc/backends/pulseaudio.cpp8
1 files changed, 4 insertions, 4 deletions
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<Channel> 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}};