ESP32 Audio Board 2,2 404 Guitar Distortion pedal raw and distorted buffer play in real time and write to SDMMC #2102
-
Hello. Its a perfect library. I've got not bad sound. But if i try to write Wav to sdmmc while realtime process line in - effect - lineout i cant normally write, i have robotics playback. Is it possible to with esp-a1s to do two things at the same time. I just attach code of my audio processing here. // === Audio Constants === // === Footswitch Pins === // === Globals === // === Audio Streams === // === DSP Classes === class MyCompressor { class MeatDist : public AudioEffect { MeatDist dist; // debounce // single audio task for I²S in→FX→DAC void setup(){ auto cfg = board.defaultConfig(RXTX_MODE); fx.addEffect(&dist); xTaskCreatePinnedToCore( void loop(){ if(checkKey(KEY_BYPASS,0)){ // serial params (P,T,M,D,C,S) as before... delay(10); |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I am not sure if I understand your question: if you want to write out the audio to the SD, you will need to make sure that write thruput is not lower than the the one required to process the audio: a first step would be to lower the sample rate and if you have determined the acutal working rate you can try to improve the write speed. If you just want to do some SD processing in parallel, you would use a separate task. Here is the list of all available effects. |
Beta Was this translation helpful? Give feedback.
I am not sure if I understand your question: if you want to write out the audio to the SD, you will need to make sure that write thruput is not lower than the the one required to process the audio: a first step would be to lower the sample rate and if you have determined the acutal working rate you can try to improve the write speed.
If you just want to do some SD processing in parallel, you would use a separate task.
Here is the list of all available effects.