Skip to content

Commit

Permalink
apply the reverb wet parameter after the reverb preset
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrolcl committed Oct 19, 2024
1 parent 78b89b0 commit 1040b71
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions example/sonivoxrender.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,6 @@ int initializeLibrary(void)
}
}

result = EAS_SetParameter(mEASDataHandle, EAS_MODULE_REVERB, EAS_PARAM_REVERB_WET, reverb_wet);
if (result != EAS_SUCCESS) {
fprintf(stderr, "Failed to set reverb wet amount");
ok = EXIT_FAILURE;
goto cleanup;
}

EAS_BOOL sw = EAS_TRUE;
EAS_I32 preset = reverb_type - 1;
if ( preset >= EAS_PARAM_REVERB_LARGE_HALL && preset <= EAS_PARAM_REVERB_ROOM ) {
Expand All @@ -118,6 +111,15 @@ int initializeLibrary(void)
ok = EXIT_FAILURE;
goto cleanup;
}
result = EAS_SetParameter(mEASDataHandle,
EAS_MODULE_REVERB,
EAS_PARAM_REVERB_WET,
reverb_wet);
if (result != EAS_SUCCESS) {
fprintf(stderr, "Failed to set reverb wet amount");
ok = EXIT_FAILURE;
goto cleanup;
}
}
result = EAS_SetParameter(mEASDataHandle, EAS_MODULE_REVERB, EAS_PARAM_REVERB_BYPASS, sw);
if (result != EAS_SUCCESS) {
Expand Down

0 comments on commit 1040b71

Please sign in to comment.