Skip to content

Commit

Permalink
adjust parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
goeiecool9999 committed Dec 9, 2024
1 parent bafaad2 commit d3c0bac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Cafe/HW/Latte/Core/LatteShaderCache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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;
Expand Down

0 comments on commit d3c0bac

Please sign in to comment.