diff options
| author | liamwhite <liamwhite@users.noreply.github.com> | 2023-12-18 15:06:16 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-18 15:06:16 -0500 |
| commit | 50fd029eaaa39132416c0fdf9aa84e78a421beb4 (patch) | |
| tree | 6c38d1d0a4a9b96ea2a4c589366e19fe7398c34b /src/audio_core/sink/cubeb_sink.cpp | |
| parent | b8c50276869aa98bc3cf2622a18c08cf1fb66315 (diff) | |
| parent | 6851e93296969e1f990ebc12e2a46026dc34ccce (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/cubeb_sink.cpp')
| -rw-r--r-- | src/audio_core/sink/cubeb_sink.cpp | 3 |
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)); |
