Skip to content

Commit d3c0bac

Browse files
committed
adjust parameters
1 parent bafaad2 commit d3c0bac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Cafe/HW/Latte/Core/LatteShaderCache.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ class BootSoundPlayer
192192
{
193193
for(size_t i = 0; i < samples.size(); i++)
194194
{
195-
float decibel = (float)m_fadeOutSample / fadeOutDuration * -100.0f;
195+
float decibel = (float)m_fadeOutSample / fadeOutDuration * -60.0f;
196196
float volumeFactor = pow(10,decibel/20);
197197
samples[i] *= volumeFactor;
198198
if(i % 2 == 1)
@@ -206,7 +206,7 @@ class BootSoundPlayer
206206
constexpr sint32 bitsPerSample = 16;
207207
constexpr sint32 samplesPerBlock = sampleRate / 10; // block is 1/10th of a second
208208
constexpr sint32 nChannels = 2;
209-
constexpr uint64 fadeOutDuration = sampleRate * 3 / 2; // fadeout should last ~1.5 seconds
209+
constexpr uint64 fadeOutDuration = sampleRate * 2; // fadeout should last 2 seconds
210210
static_assert(bitsPerSample % 8 == 0, "bits per sample is not a multiple of 8");
211211

212212
AudioAPIPtr bootSndAudioDev;

0 commit comments

Comments
 (0)