Merge pull request #562 from lioncash/amp

spu: Make use of logical AND within IsPitchModulationEnabled()
This commit is contained in:
Connor McLaughlin 2020-06-24 01:29:42 +10:00 committed by GitHub
commit 4b31034efa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -350,7 +350,7 @@ private:
} }
ALWAYS_INLINE bool IsPitchModulationEnabled(u32 i) const ALWAYS_INLINE bool IsPitchModulationEnabled(u32 i) const
{ {
return ((i > 0) & ConvertToBoolUnchecked((m_pitch_modulation_enable_register >> i) & u32(1))); return ((i > 0) && ConvertToBoolUnchecked((m_pitch_modulation_enable_register >> i) & u32(1)));
} }
ALWAYS_INLINE s16 GetVoiceNoiseLevel() const { return static_cast<s16>(static_cast<u16>(m_noise_level)); } ALWAYS_INLINE s16 GetVoiceNoiseLevel() const { return static_cast<s16>(static_cast<u16>(m_noise_level)); }