From d3c0bac43c887fff36c80a8dc204e729948d98b2 Mon Sep 17 00:00:00 2001 From: goeiecool9999 <7033575+goeiecool9999@users.noreply.github.com> Date: Mon, 9 Dec 2024 21:03:09 +0100 Subject: [PATCH] adjust parameters --- src/Cafe/HW/Latte/Core/LatteShaderCache.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Cafe/HW/Latte/Core/LatteShaderCache.cpp b/src/Cafe/HW/Latte/Core/LatteShaderCache.cpp index 1fcf7893..1cf32607 100644 --- a/src/Cafe/HW/Latte/Core/LatteShaderCache.cpp +++ b/src/Cafe/HW/Latte/Core/LatteShaderCache.cpp @@ -192,7 +192,7 @@ class BootSoundPlayer { for(size_t i = 0; i < samples.size(); i++) { - float decibel = (float)m_fadeOutSample / fadeOutDuration * -100.0f; + float decibel = (float)m_fadeOutSample / fadeOutDuration * -60.0f; float volumeFactor = pow(10,decibel/20); samples[i] *= volumeFactor; if(i % 2 == 1) @@ -206,7 +206,7 @@ class BootSoundPlayer constexpr sint32 bitsPerSample = 16; constexpr sint32 samplesPerBlock = sampleRate / 10; // block is 1/10th of a second constexpr sint32 nChannels = 2; - constexpr uint64 fadeOutDuration = sampleRate * 3 / 2; // fadeout should last ~1.5 seconds + constexpr uint64 fadeOutDuration = sampleRate * 2; // fadeout should last 2 seconds static_assert(bitsPerSample % 8 == 0, "bits per sample is not a multiple of 8"); AudioAPIPtr bootSndAudioDev;