From 62e2cd62396b3ed19494e9d3ff5f4b46af9499a9 Mon Sep 17 00:00:00 2001 From: xperia64 Date: Wed, 10 Jun 2020 17:10:50 -0400 Subject: [PATCH] Use samples_per_frame instead of hardcoded 160 --- src/audio_core/hle/hle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/audio_core/hle/hle.cpp b/src/audio_core/hle/hle.cpp index 23a472d04a..dfbc8daf0a 100644 --- a/src/audio_core/hle/hle.cpp +++ b/src/audio_core/hle/hle.cpp @@ -54,7 +54,7 @@ SERIALIZE_IMPL(DspHle) // // As per merry, it may be useful to verify this on hardware with the more recently // discovered "correct" ARM11 frequency of 268111856 as opposed to 268123480 -static constexpr u64 audio_frame_ticks = 160 * 4096 * 2ull; ///< Units: ARM11 cycles +static constexpr u64 audio_frame_ticks = samples_per_frame * 4096 * 2ull; ///< Units: ARM11 cycles struct DspHle::Impl final { public: