yuzu-emu
/
yuzu-mainline
Archived
1
0
Fork 0

revert to std::sin and std::cos

This commit is contained in:
Chloe Marcec 2021-02-11 19:44:26 +11:00 committed by bunnei
parent d28b942458
commit 7ad63ea542
3 changed files with 6 additions and 6 deletions

View File

@ -91,11 +91,11 @@ float Pow10(float x) {
} }
float SinD(float degrees) { 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) { 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) { float ToFloat(s32 sample) {

View File

@ -9,7 +9,7 @@ public:
DelayLineBase(); DelayLineBase();
~DelayLineBase(); ~DelayLineBase();
void Initialize(s32 _max_delay, float* src_buffer); void Initialize(s32 max_delay_, float* src_buffer);
void SetDelay(s32 new_delay); void SetDelay(s32 new_delay);
s32 GetDelay() const; s32 GetDelay() const;
s32 GetMaxDelay() const; s32 GetMaxDelay() const;

View File

@ -126,10 +126,10 @@ void EffectI3dl2Reverb::Update(EffectInfo::InParams& in_params) {
params.status = ParameterStatus::Initialized; params.status = ParameterStatus::Initialized;
skipped = in_params.buffer_address == 0 || in_params.buffer_size == 0; skipped = in_params.buffer_address == 0 || in_params.buffer_size == 0;
if (!skipped) { if (!skipped) {
auto& work_buffer = GetWorkBuffer(); auto& cur_work_buffer = GetWorkBuffer();
// Has two buffers internally // Has two buffers internally
work_buffer.resize(in_params.buffer_size * 2); cur_work_buffer.resize(in_params.buffer_size * 2);
std::fill(work_buffer.begin(), work_buffer.end(), 0); std::fill(cur_work_buffer.begin(), cur_work_buffer.end(), 0);
} }
} }
} }