aboutsummaryrefslogtreecommitdiff
path: root/src/audio_core/sink/sdl2_sink.cpp
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-12-18 15:06:16 -0500
committerGitHub <noreply@github.com>2023-12-18 15:06:16 -0500
commit50fd029eaaa39132416c0fdf9aa84e78a421beb4 (patch)
tree6c38d1d0a4a9b96ea2a4c589366e19fe7398c34b /src/audio_core/sink/sdl2_sink.cpp
parentb8c50276869aa98bc3cf2622a18c08cf1fb66315 (diff)
parent6851e93296969e1f990ebc12e2a46026dc34ccce (diff)
Merge pull request #12349 from Kelebek1/return_system_channels_active
Have GetActiveChannelCount return the system channels instead of host device channels
Diffstat (limited to 'src/audio_core/sink/sdl2_sink.cpp')
-rw-r--r--src/audio_core/sink/sdl2_sink.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/audio_core/sink/sdl2_sink.cpp b/src/audio_core/sink/sdl2_sink.cpp
index 96e0efce2..7dd155ff0 100644
--- a/src/audio_core/sink/sdl2_sink.cpp
+++ b/src/audio_core/sink/sdl2_sink.cpp
@@ -168,8 +168,9 @@ SDLSink::SDLSink(std::string_view target_device_name) {
SDLSink::~SDLSink() = default;
-SinkStream* SDLSink::AcquireSinkStream(Core::System& system, u32 system_channels,
+SinkStream* SDLSink::AcquireSinkStream(Core::System& system, u32 system_channels_,
const std::string&, StreamType type) {
+ system_channels = system_channels_;
SinkStreamPtr& stream = sink_streams.emplace_back(std::make_unique<SDLSinkStream>(
device_channels, system_channels, output_device, input_device, type, system));
return stream.get();