summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChloe Marcec <dmarcecguzman@gmail.com>2021-02-11 09:44:26 +0100
committerbunnei <bunneidev@gmail.com>2021-02-13 03:48:10 +0100
commit7ad63ea542c69b4d7d495a38aa247b4958989ee7 (patch)
tree7065051ed0c7f9717a3789777bf4ea835f54eeab /src
parentaddress issues (diff)
downloadyuzu-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')
-rw-r--r--src/audio_core/command_generator.cpp4
-rw-r--r--src/audio_core/delay_line.h2
-rw-r--r--src/audio_core/effect_context.cpp6
3 files changed, 6 insertions, 6 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) {
diff --git a/src/audio_core/delay_line.h b/src/audio_core/delay_line.h
index 420b71cdb..cafddd432 100644
--- a/src/audio_core/delay_line.h
+++ b/src/audio_core/delay_line.h
@@ -9,7 +9,7 @@ public:
DelayLineBase();
~DelayLineBase();
- void Initialize(s32 _max_delay, float* src_buffer);
+ void Initialize(s32 max_delay_, float* src_buffer);
void SetDelay(s32 new_delay);
s32 GetDelay() const;
s32 GetMaxDelay() const;
diff --git a/src/audio_core/effect_context.cpp b/src/audio_core/effect_context.cpp
index eeee8e325..89e4573c7 100644
--- a/src/audio_core/effect_context.cpp
+++ b/src/audio_core/effect_context.cpp
@@ -126,10 +126,10 @@ void EffectI3dl2Reverb::Update(EffectInfo::InParams& in_params) {
params.status = ParameterStatus::Initialized;
skipped = in_params.buffer_address == 0 || in_params.buffer_size == 0;
if (!skipped) {
- auto& work_buffer = GetWorkBuffer();
+ auto& cur_work_buffer = GetWorkBuffer();
// Has two buffers internally
- work_buffer.resize(in_params.buffer_size * 2);
- std::fill(work_buffer.begin(), work_buffer.end(), 0);
+ cur_work_buffer.resize(in_params.buffer_size * 2);
+ std::fill(cur_work_buffer.begin(), cur_work_buffer.end(), 0);
}
}
}