summaryrefslogtreecommitdiffstats
path: root/src/audio_core/sink/sdl2_sink.cpp
diff options
context:
space:
mode:
authorKelebek1 <eeeedddccc@hotmail.co.uk>2023-12-13 07:26:20 +0100
committerLiam <byteslice@airmail.cc>2023-12-16 18:49:28 +0100
commitffbba74c91e2200868047f76ab5c452bb9aa338d (patch)
treebf3477ac30013763ea12486272b4aaf42a94cef3 /src/audio_core/sink/sdl2_sink.cpp
parentMerge pull request #12184 from Kelebek1/system_settings (diff)
downloadyuzu-ffbba74c91e2200868047f76ab5c452bb9aa338d.tar
yuzu-ffbba74c91e2200868047f76ab5c452bb9aa338d.tar.gz
yuzu-ffbba74c91e2200868047f76ab5c452bb9aa338d.tar.bz2
yuzu-ffbba74c91e2200868047f76ab5c452bb9aa338d.tar.lz
yuzu-ffbba74c91e2200868047f76ab5c452bb9aa338d.tar.xz
yuzu-ffbba74c91e2200868047f76ab5c452bb9aa338d.tar.zst
yuzu-ffbba74c91e2200868047f76ab5c452bb9aa338d.zip
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();