Skip to content

Commit f8620b0

Browse files
committed
Dial in echos
1 parent 6062eb9 commit f8620b0

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

SpeechService/EddiSpeech.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,22 +59,22 @@ private static int GetEchoDelay ( LandingPadSize size )
5959
{
6060
if ( size == LandingPadSize.Small )
6161
{
62-
echoDelayMs = 150;
62+
echoDelayMs = 100;
6363
}
6464
else if ( size == LandingPadSize.Medium )
6565
{
6666
echoDelayMs = 200;
6767
}
6868
else if ( size == LandingPadSize.Large )
6969
{
70-
echoDelayMs = 400;
70+
echoDelayMs = 300;
7171
}
7272
}
7373

7474
return echoDelayMs;
7575
}
7676

77-
internal static int GetReverbLevel ( int configFxLevel )
77+
private static int GetReverbLevel ( int configFxLevel )
7878
{
7979
// This is not affected by ship parameters
8080
return (int)( 80 * ( configFxLevel / 100M ) );

SpeechService/SpeechEffects/SpeechFX.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public static IWaveProvider addEffectsToSource ( Stream stream, int chorusLevel,
4848
else
4949
{
5050
// Echo
51-
signal = ApplyEcho( signal, echoDelay, damageAdjustedFxLevel, sampleRate );
51+
signal = ApplyEcho( signal, echoDelay, sampleRate );
5252

5353
// Reverb
5454
signal = ApplyReverb( signal, reverbLevel, damageAdjustedFxLevel, sampleRate );
@@ -111,15 +111,15 @@ private static DiscreteSignal ApplyDamageDistortion ( DiscreteSignal signal, int
111111
return signal;
112112
}
113113

114-
private static DiscreteSignal ApplyEcho ( DiscreteSignal signal, int echoDelayMs, int damageAdjustedFxLevel, int sampleRate )
114+
private static DiscreteSignal ApplyEcho ( DiscreteSignal signal, int echoDelayMs, int sampleRate )
115115
{
116116
if ( echoDelayMs != 0 )
117117
{
118118
// Define the echo sample rate and delay in seconds
119119
var delaySampleRate = Convert.ToInt32( sampleRate * 0.15 );
120120
var echo = new EchoEffect( delaySampleRate, echoDelayMs / 1000.0f );
121121
// The "wetDryMix" mix is the percent of added echo, with 0 indicating no added echo.
122-
echo.WetDryMix( 0.10f * damageAdjustedFxLevel / 100f );
122+
echo.WetDryMix( 0.5f );
123123
signal = echo.ApplyTo( signal );
124124
}
125125

0 commit comments

Comments
 (0)