File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ class BootSoundPlayer
192
192
{
193
193
for (size_t i = 0 ; i < samples.size (); i++)
194
194
{
195
- float decibel = (float )m_fadeOutSample / fadeOutDuration * -100 .0f ;
195
+ float decibel = (float )m_fadeOutSample / fadeOutDuration * -60 .0f ;
196
196
float volumeFactor = pow (10 ,decibel/20 );
197
197
samples[i] *= volumeFactor;
198
198
if (i % 2 == 1 )
@@ -206,7 +206,7 @@ class BootSoundPlayer
206
206
constexpr sint32 bitsPerSample = 16 ;
207
207
constexpr sint32 samplesPerBlock = sampleRate / 10 ; // block is 1/10th of a second
208
208
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
210
210
static_assert (bitsPerSample % 8 == 0 , " bits per sample is not a multiple of 8" );
211
211
212
212
AudioAPIPtr bootSndAudioDev;
You can’t perform that action at this time.
0 commit comments