Have GetActiveChannelCount return the system channels instead of host device channels

This commit is contained in:
Kelebek1 2023-12-13 06:26:20 +00:00 committed by Liam
parent a093f3d47a
commit ffbba74c91
5 changed files with 43 additions and 20 deletions

View file

@ -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>;