diff options
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: | |||
| 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 | |||
| 88 | protected: | 98 | protected: |
| 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 | ||
| 93 | using SinkPtr = std::unique_ptr<Sink>; | 105 | using SinkPtr = std::unique_ptr<Sink>; |