summaryrefslogtreecommitdiff
path: root/src/audio_core/sink/sink.h
diff options
context:
space:
mode:
authorGravatar Kelebek12023-12-13 06:26:20 +0000
committerGravatar Liam2023-12-16 12:49:28 -0500
commitffbba74c91e2200868047f76ab5c452bb9aa338d (patch)
treebf3477ac30013763ea12486272b4aaf42a94cef3 /src/audio_core/sink/sink.h
parentMerge pull request #12184 from Kelebek1/system_settings (diff)
downloadyuzu-ffbba74c91e2200868047f76ab5c452bb9aa338d.tar.gz
yuzu-ffbba74c91e2200868047f76ab5c452bb9aa338d.tar.xz
yuzu-ffbba74c91e2200868047f76ab5c452bb9aa338d.zip
Have GetActiveChannelCount return the system channels instead of host device channels
Diffstat (limited to 'src/audio_core/sink/sink.h')
-rw-r--r--src/audio_core/sink/sink.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/audio_core/sink/sink.h b/src/audio_core/sink/sink.h
index f28c6d126..e22e8c3e5 100644
--- a/src/audio_core/sink/sink.h
+++ b/src/audio_core/sink/sink.h
@@ -85,9 +85,21 @@ public:
85 */ 85 */
86 virtual void SetSystemVolume(f32 volume) = 0; 86 virtual void SetSystemVolume(f32 volume) = 0;
87 87
88 /**
89 * Get the number of channels the game has set, can be different to the host hardware's support.
90 * Either 2 or 6.
91 *
92 * @return Number of device channels.
93 */
94 u32 GetSystemChannels() const {
95 return system_channels;
96 }
97
88protected: 98protected:
89 /// Number of device channels supported by the hardware 99 /// Number of device channels supported by the hardware
90 u32 device_channels{2}; 100 u32 device_channels{2};
101 /// Number of channels the game is sending
102 u32 system_channels{2};
91}; 103};
92 104
93using SinkPtr = std::unique_ptr<Sink>; 105using SinkPtr = std::unique_ptr<Sink>;