Have GetActiveChannelCount return the system channels instead of host device channels

This commit is contained in:
Kelebek1 2023-12-13 06:26:20 +00:00 committed by Liam
parent a093f3d47a
commit ffbba74c91
5 changed files with 43 additions and 20 deletions

View file

@ -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();