mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-12-14 03:59:36 +00:00
More stuff, fix saved games
This commit is contained in:
@@ -67,6 +67,11 @@ IGpAudioChannel *GpAudioDriverXAudio2::CreateChannel()
|
||||
return GpAudioChannelXAudio2::Create(this);
|
||||
}
|
||||
|
||||
void GpAudioDriverXAudio2::SetMasterVolume(uint32_t vol, uint32_t maxVolume)
|
||||
{
|
||||
m_mv->SetVolume(static_cast<float>(vol) / static_cast<float>(maxVolume));
|
||||
}
|
||||
|
||||
GpAudioDriverXAudio2::GpAudioDriverXAudio2(const GpAudioDriverProperties &properties, unsigned int realSampleRate, IXAudio2* xa2, IXAudio2MasteringVoice *mv)
|
||||
: m_properties(properties)
|
||||
, m_realSampleRate(realSampleRate)
|
||||
|
||||
@@ -10,7 +10,8 @@ struct IXAudio2MasteringVoice;
|
||||
class GpAudioDriverXAudio2 : public IGpAudioDriver
|
||||
{
|
||||
public:
|
||||
IGpAudioChannel *CreateChannel() override;
|
||||
IGpAudioChannel *CreateChannel() override;
|
||||
void SetMasterVolume(uint32_t vol, uint32_t maxVolume) override;
|
||||
void Shutdown() override;
|
||||
|
||||
const GpAudioDriverProperties &GetProperties() const;
|
||||
|
||||
Reference in New Issue
Block a user