diff options
| author | Kelebek1 <eeeedddccc@hotmail.co.uk> | 2023-12-13 06:26:20 +0000 |
|---|---|---|
| committer | Liam <byteslice@airmail.cc> | 2023-12-16 12:49:28 -0500 |
| commit | ffbba74c91e2200868047f76ab5c452bb9aa338d (patch) | |
| tree | bf3477ac30013763ea12486272b4aaf42a94cef3 /src/audio_core/sink/sink.h | |
| parent | a093f3d47a418e1eeb7ea091f4950bfd0e1ee028 (diff) | |
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.h | 12 |
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>; |
