From e215f9579feb9c76304e79ff1d473b2717ed9e77 Mon Sep 17 00:00:00 2001 From: Uwe Klotz Date: Thu, 20 May 2021 01:27:35 +0200 Subject: [PATCH] Revert "signalinfo: Add explicit double casts" This reverts commit c22daf04c090ac73a5c410307efd1f28965c4687. --- src/audio/signalinfo.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/audio/signalinfo.h b/src/audio/signalinfo.h index ef33ad0acd2..685dab16989 100644 --- a/src/audio/signalinfo.h +++ b/src/audio/signalinfo.h @@ -46,7 +46,7 @@ class SignalInfo final { // Conversion: #samples / sample offset -> #frames / frame offset double samples2framesFractional(double samples) const { DEBUG_ASSERT(getChannelCount().isValid()); - return samples / static_cast(getChannelCount()); + return samples / getChannelCount(); } // Conversion: #frames / frame offset -> #samples / sample offset @@ -58,7 +58,7 @@ class SignalInfo final { // Conversion: #frames / frame offset -> second offset double frames2secsFractional(double frames) const { DEBUG_ASSERT(getSampleRate().isValid()); - return frames / static_cast(getSampleRate()); + return frames / getSampleRate(); } // Conversion: #frames / frame offset -> second offset @@ -69,7 +69,7 @@ class SignalInfo final { // Conversion: second offset -> #frames / frame offset double secs2frames(double seconds) const { DEBUG_ASSERT(getSampleRate().isValid()); - return seconds * static_cast(getSampleRate()); + return seconds * getSampleRate(); } // Conversion: #frames / frame offset -> millisecond offset