Isn't 4MB just the total flash memory? DRAM should be a lot less, max 256KB
if you do not use BT and tracing.

Kind regards, Joshua

On Thu, Jul 2, 2020 at 6:26 PM MahaVoice SkyTravers <mahavo...@gmail.com>
wrote:

> Hi everyones,
> At last, I did it .I added flange and phaser effects to my esp32 board but
> I cant delay,yet.
> Also I added hardware midi knobs and assigned it to esp32 hardware
> For a simple start I wrote very simple delay/reverb effects without any
> feedback on faust،something like this in dsp format:
>
> Import("sdtfaust.lib");
> echo=_,6000:@;
> process=_,echo:+;
>
> Suppose sampling rate is 48000Hz
>
> When I run it ,It worked , but for 125ms of reverb when I used this:
>
> .....
> echo=_,48000:@;
> ....
> Delay time equal to 1 second and it didn't work ,so I realized it is %100
> related to memory problem.
> I guessed when we use effect proccessore for audio there must be 2 buffers
> ,one for input and the other for output so I had to search my compiled
> esp32 (dsp to .cpp) file for these buffers.
>
> I found these:
>
> 1. int32_t sample_data_in[AUDIO_MAX_CHAN*fBufferSize];
> 2. int32_t sample_audio_out[AUDIO_MAX_CHAN*fBufferSize];
>
> Then I thought to end of the problem line and added EXT_RAM_ATTR to end of
> each above lines and... It didn't work.☹️
>
> So I am a bit of confused...
> PS. Because I am using the Arduino IDE and windows 10 ,I enabled psram in
> tools menu and write a tiny program and log into the cpu and checked the
> amount of ext psram and it was ok(4MB) and arduino ide could see it.
>
> Any help appriciated.
> Best Regards
>
>
> _______________________________________________
> Faudiostream-users mailing list
> Faudiostream-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/faudiostream-users
>
_______________________________________________
Faudiostream-users mailing list
Faudiostream-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/faudiostream-users

Reply via email to