From 758902382d9b92de8b0bbcea1e92c49db3043bae Mon Sep 17 00:00:00 2001 From: JohnHolmesII Date: Sat, 22 Feb 2020 18:25:56 -0800 Subject: [PATCH] AudioBackend.cpp: Implicit enum to float conversions are deprecated --- rpcs3/Emu/Audio/AudioBackend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/Audio/AudioBackend.cpp b/rpcs3/Emu/Audio/AudioBackend.cpp index 0d0cd7f1d0..9ce0f5e24e 100644 --- a/rpcs3/Emu/Audio/AudioBackend.cpp +++ b/rpcs3/Emu/Audio/AudioBackend.cpp @@ -14,7 +14,7 @@ u32 AudioBackend::get_sampling_rate() const f32 sampling_period_multiplier = sampling_period_multiplier_u32 / 100.0f; const f32 sampling_rate_multiplier = 1.0f / sampling_period_multiplier; - return static_cast(DEFAULT_AUDIO_SAMPLING_RATE * sampling_rate_multiplier); + return static_cast(f32{DEFAULT_AUDIO_SAMPLING_RATE} * sampling_rate_multiplier); } u32 AudioBackend::get_sample_size()