diff --git a/src/main.c b/src/main.c index b331632..2ed6005 100644 --- a/src/main.c +++ b/src/main.c @@ -95,7 +95,7 @@ static int printhelp(){ " default, smallhall1, smallhall2, mediumhall1, mediumhall2,\n" " largehall1, largehall2, smallroom1, smallroom2,\n" " mediumroom1, mediumroom2, largeroom1, largeroom2, mediumer1,\n" - " mediumer2, platehigh, platelow, longreverb1, longreverb2\n"); + " mediumer2, platehigh, platelow, longreverb1, longreverb2, soft\n"); return 0; } @@ -180,6 +180,7 @@ static inline int reverb(sf_snd input_snd, float tail, const char *preset, const else if (strcmp(preset, "platelow" ) == 0) p = SF_REVERB_PRESET_PLATELOW; else if (strcmp(preset, "longreverb1") == 0) p = SF_REVERB_PRESET_LONGREVERB1; else if (strcmp(preset, "longreverb2") == 0) p = SF_REVERB_PRESET_LONGREVERB2; + else if (strcmp(preset, "soft") == 0) p = SF_REVERB_PRESET_SOFT; else{ fprintf(stderr, "Error: Invalid reverb preset: %s\n", preset); return 1; diff --git a/src/reverb.c b/src/reverb.c index 5a1b2d2..ea49822 100644 --- a/src/reverb.c +++ b/src/reverb.c @@ -634,7 +634,8 @@ void sf_presetreverb(sf_reverb_state_st *rv, int rate, sf_reverb_preset preset){ {2, 0.00f,-70.0f,-20, 1.0f, 1.0f, 1.0f, -8, 0.20f, 0.10f, 1.6f,18000,1000,16000,18000, 1.8f,0.000f}, {2, 0.00f,-70.0f,-20, 1.0f, 1.0f, 1.0f, -8, 0.30f, 0.20f, 0.4f,18000, 500, 9000,18000, 1.9f,0.000f}, {2, 0.10f,-16.0f,-15, 1.0f, 0.1f, 1.0f, -5, 0.35f, 0.05f, 1.0f,18000, 100,10000,18000,12.0f,0.000f}, -{2, 0.10f,-16.0f,-15, 1.0f, 0.1f, 1.0f, -5, 0.40f, 0.05f, 1.0f,18000, 100, 9000,18000,30.0f,0.000f} +{2, 0.10f,-16.0f,-15, 1.0f, 0.1f, 1.0f, -5, 0.40f, 0.05f, 1.0f,18000, 100, 9000,18000,30.0f,0.000f}, +{2, 0.10f,-10.0f,-30, 1.3f, 0.1f, 1.0f, -15, 0.40f, 0.05f, 1.2f,18000, 1000, 9000,18000, 2.0f,0.01f} }; @@ -662,6 +663,7 @@ void sf_presetreverb(sf_reverb_state_st *rv, int rate, sf_reverb_preset preset){ CASE(SF_REVERB_PRESET_PLATELOW , 16) CASE(SF_REVERB_PRESET_LONGREVERB1, 17) CASE(SF_REVERB_PRESET_LONGREVERB2, 18) + CASE(SF_REVERB_PRESET_SOFT, 19) } #undef CASE } diff --git a/src/reverb.h b/src/reverb.h index 8b9e778..7917e2e 100644 --- a/src/reverb.h +++ b/src/reverb.h @@ -253,7 +253,8 @@ typedef enum { SF_REVERB_PRESET_PLATEHIGH, SF_REVERB_PRESET_PLATELOW, SF_REVERB_PRESET_LONGREVERB1, - SF_REVERB_PRESET_LONGREVERB2 + SF_REVERB_PRESET_LONGREVERB2, + SF_REVERB_PRESET_SOFT } sf_reverb_preset; // populate a reverb state with a preset