aboutsummaryrefslogtreecommitdiffstats
path: root/alc/backends/portaudio.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/portaudio.cpp
parentb54bb388a3dbd92518beef4bda03df5854aad1a9 (diff)
Use the DeviceBase for the backend
Diffstat (limited to 'alc/backends/portaudio.cpp')
-rw-r--r--alc/backends/portaudio.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/alc/backends/portaudio.cpp b/alc/backends/portaudio.cpp
index 188f72f2..8f41b12a 100644
--- a/alc/backends/portaudio.cpp
+++ b/alc/backends/portaudio.cpp
@@ -72,7 +72,7 @@ MAKE_FUNC(Pa_GetStreamInfo);
struct PortPlayback final : public BackendBase {
- PortPlayback(ALCdevice *device) noexcept : BackendBase{device} { }
+ PortPlayback(DeviceBase *device) noexcept : BackendBase{device} { }
~PortPlayback() override;
int writeCallback(const void *inputBuffer, void *outputBuffer, unsigned long framesPerBuffer,
@@ -231,7 +231,7 @@ void PortPlayback::stop()
struct PortCapture final : public BackendBase {
- PortCapture(ALCdevice *device) noexcept : BackendBase{device} { }
+ PortCapture(DeviceBase *device) noexcept : BackendBase{device} { }
~PortCapture() override;
int readCallback(const void *inputBuffer, void *outputBuffer, unsigned long framesPerBuffer,
@@ -431,7 +431,7 @@ std::string PortBackendFactory::probe(BackendType type)
return outnames;
}
-BackendPtr PortBackendFactory::createBackend(ALCdevice *device, BackendType type)
+BackendPtr PortBackendFactory::createBackend(DeviceBase *device, BackendType type)
{
if(type == BackendType::Playback)
return BackendPtr{new PortPlayback{device}};