Browse code

Minor change to use constexpr.

Naram Qashat authored on 2021/04/05 00:47:31
Showing 1 changed files
... ...
@@ -22,8 +22,8 @@
22 22
 class XSFPlayer
23 23
 {
24 24
 protected:
25
-	static const std::uint32_t CHECK_SILENCE_BIAS = 0x8000000;
26
-	static const std::uint32_t CHECK_SILENCE_LEVEL = 7;
25
+	static constexpr std::uint32_t CHECK_SILENCE_BIAS = 0x8000000;
26
+	static constexpr std::uint32_t CHECK_SILENCE_LEVEL = 7;
27 27
 
28 28
 	std::unique_ptr<XSFFile> xSF;
29 29
 	unsigned sampleRate, detectedSilenceSample, detectedSilenceSec, skipSilenceOnStartSec, lengthSample, fadeSample, currentSample;