Lmnts reverb sdram allocation question


#1

Hello!

I was looking at the code for lmtns reverb and I noticed that it uses 32768 sample size with this code line:

uint16_t* buf = (uint16_t*) sdram_malloc(32768);

I tried changing the 32768 to 1024 samples. And it sounds exactly the same. So I am wondering if I actually changed anything. If it sounds the same with only 1024 samples i'd rather use that and safe sdram for other purposes.

So my question is, is there anyway to check how much of sdram is used in a patch? So I can check it I really have changed anything.

Thanks!


#2

this is the internal buffer used by the fx engine, so for delay lines etc.. (as far as i remember)
the optimum size would need to be calculated.

no you cant just set it to whatever you like -as if its set to low, then it will just starting writing over other data you have in sdram... which would cause pretty odd errors, since you have no idea what other data it will be corrupting.
so no dont change it :wink:

when I have time, I'll look at trying to determine what it needs.


#3

Ah, that makes sense :slight_smile:

No worries. I am just always looking at ways to optimize patches.