summaryrefslogtreecommitdiffstats
path: root/src/audio_core/sink/sink.h
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-12-18 21:06:16 +0100
committerGitHub <noreply@github.com>2023-12-18 21:06:16 +0100
commit50fd029eaaa39132416c0fdf9aa84e78a421beb4 (patch)
tree6c38d1d0a4a9b96ea2a4c589366e19fe7398c34b /src/audio_core/sink/sink.h
parentMerge pull request #12389 from liamwhite/string-copy (diff)
parentaudio: skip coefficient normalization for downmix (diff)
downloadyuzu-50fd029eaaa39132416c0fdf9aa84e78a421beb4.tar
yuzu-50fd029eaaa39132416c0fdf9aa84e78a421beb4.tar.gz
yuzu-50fd029eaaa39132416c0fdf9aa84e78a421beb4.tar.bz2
yuzu-50fd029eaaa39132416c0fdf9aa84e78a421beb4.tar.lz
yuzu-50fd029eaaa39132416c0fdf9aa84e78a421beb4.tar.xz
yuzu-50fd029eaaa39132416c0fdf9aa84e78a421beb4.tar.zst
yuzu-50fd029eaaa39132416c0fdf9aa84e78a421beb4.zip
Diffstat (limited to '')
-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:
*/
virtual void SetSystemVolume(f32 volume) = 0;
+ /**
+ * Get the number of channels the game has set, can be different to the host hardware's support.
+ * Either 2 or 6.
+ *
+ * @return Number of device channels.
+ */
+ u32 GetSystemChannels() const {
+ return system_channels;
+ }
+
protected:
/// Number of device channels supported by the hardware
u32 device_channels{2};
+ /// Number of channels the game is sending
+ u32 system_channels{2};
};
using SinkPtr = std::unique_ptr<Sink>;