Open renetik opened 2 years ago
Ok I fixed it by moving cDelayLengths and aDelayLengths inside constructor like this while commenting it out outside.
FreeVerb::FreeVerb( void )
{
int cDelayLengths[] = {1617, 1557, 1491, 1422, 1356, 1277, 1188, 1116};
int aDelayLengths[] = {225, 556, 441, 341};
This way problem is fixed .. looks like library is not used much because I cannot get how could I be alone to face this issue.
Would you be interested if I create pull request ?
It is not immediately clear why the global definition outside the scope of the constructor would cause such behaviour but the fix makes sense and I would be happy to have it submitted as a PR. There could be several reasons why this has not come up before, including that example usage to reproduce the problem is not very typical and also because the issue seems like it may be compiler-specific.
I discovered that reverb effect is changing sound after I create remove repeatedly that I made simple test like this and it proved my theory that some value or something get modified and is shared across instances..
You can reproduce it like this:
Here just use the last instance .. It has broken sound..
I am trying to find out why now but not yet with luck.