diff options
author | Chloe Marcec <dmarcecguzman@gmail.com> | 2021-02-11 09:44:26 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2021-02-13 03:48:10 +0100 |
commit | 7ad63ea542c69b4d7d495a38aa247b4958989ee7 (patch) | |
tree | 7065051ed0c7f9717a3789777bf4ea835f54eeab /src/audio_core/command_generator.cpp | |
parent | address issues (diff) | |
download | yuzu-7ad63ea542c69b4d7d495a38aa247b4958989ee7.tar yuzu-7ad63ea542c69b4d7d495a38aa247b4958989ee7.tar.gz yuzu-7ad63ea542c69b4d7d495a38aa247b4958989ee7.tar.bz2 yuzu-7ad63ea542c69b4d7d495a38aa247b4958989ee7.tar.lz yuzu-7ad63ea542c69b4d7d495a38aa247b4958989ee7.tar.xz yuzu-7ad63ea542c69b4d7d495a38aa247b4958989ee7.tar.zst yuzu-7ad63ea542c69b4d7d495a38aa247b4958989ee7.zip |
Diffstat (limited to 'src/audio_core/command_generator.cpp')
-rw-r--r-- | src/audio_core/command_generator.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/audio_core/command_generator.cpp b/src/audio_core/command_generator.cpp index 2e2b296b0..437cc5ccd 100644 --- a/src/audio_core/command_generator.cpp +++ b/src/audio_core/command_generator.cpp @@ -91,11 +91,11 @@ float Pow10(float x) { } float SinD(float degrees) { - return std::sinf(degrees * static_cast<float>(std::numbers::pi) / 180.0f); + return std::sin(degrees * std::numbers::pi_v<float> / 180.0f); } float CosD(float degrees) { - return std::cosf(degrees * static_cast<float>(std::numbers::pi) / 180.0f); + return std::cos(degrees * std::numbers::pi_v<float> / 180.0f); } float ToFloat(s32 sample) { |