aboutsummaryrefslogtreecommitdiff
path: root/src/audio_core/sink/cubeb_sink.cpp
diff options
context:
space:
mode:
authorKelebek1 <eeeedddccc@hotmail.co.uk>2023-12-13 06:26:20 +0000
committerLiam <byteslice@airmail.cc>2023-12-16 12:49:28 -0500
commitffbba74c91e2200868047f76ab5c452bb9aa338d (patch)
treebf3477ac30013763ea12486272b4aaf42a94cef3 /src/audio_core/sink/cubeb_sink.cpp
parenta093f3d47a418e1eeb7ea091f4950bfd0e1ee028 (diff)
Have GetActiveChannelCount return the system channels instead of host device channels
Diffstat (limited to 'src/audio_core/sink/cubeb_sink.cpp')
-rw-r--r--src/audio_core/sink/cubeb_sink.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/audio_core/sink/cubeb_sink.cpp b/src/audio_core/sink/cubeb_sink.cpp
index 51a23fe15..d97ca2a40 100644
--- a/src/audio_core/sink/cubeb_sink.cpp
+++ b/src/audio_core/sink/cubeb_sink.cpp
@@ -253,8 +253,9 @@ CubebSink::~CubebSink() {
#endif
}
-SinkStream* CubebSink::AcquireSinkStream(Core::System& system, u32 system_channels,
+SinkStream* CubebSink::AcquireSinkStream(Core::System& system, u32 system_channels_,
const std::string& name, StreamType type) {
+ system_channels = system_channels_;
SinkStreamPtr& stream = sink_streams.emplace_back(std::make_unique<CubebSinkStream>(
ctx, device_channels, system_channels, output_device, input_device, name, type, system));