Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
Expand Down
4 changes: 3 additions & 1 deletion src/reverb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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}

};

Expand Down Expand Up @@ -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
}
Expand Down
3 changes: 2 additions & 1 deletion src/reverb.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down