-
Notifications
You must be signed in to change notification settings - Fork 700
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'Memory exhausted' error while using example 'audio mixer tone' (AUD-5884) #1320
Comments
When decode MP3, it uses more memory, So you need turn on PSRAM support. |
But for those who do not have PSRAM, like 'ESP32-S3-WROOM-1U-N8'(8MB flash and NO PSRAM), how to solve this problem? |
Maybe it not suitable to run audio related project. |
Okay I run the command 'pmixer' successfully on ESP32-S3-WROOM-1-N16R8 which has a PSRAM. You mean this example 'audio_mixer_tone' do not support a chip without PSRAM? In our current project, we wanna to mix audio in and mp3 file together in real time. Maybe this won't cost much memory? Because it is no need to support all the formats. |
And I would like to know how to modify this example to use only mp3 decoder, since mp3 may cost less memory. |
If you have more than 100K mem left, I think run decoder mp3 and mixer together is OK. You can buildup your APP from simple case to your full APP. Decoder mp3 only (can use simple decoder) --> Decode in extra tasks --> Mixer 2 streams --> decode in tasks, decode write to ringfifo, mixer stream read 2 streams。 create task if needed in stead of use audio pipeline can decrease memory usage. |
Environment
v5.3.1
v2.7-6-g14c79a00
ESP-IDF
extension)](crosstool-NG esp-13.2.0_20240530) 13.2.0
Problem Description
Steps to Reproduce
and unfortunately the pvmp3_framedecoder.cpp is included only as a library so there is no opportunity for me to examine the code and see what might be going on (unless I decompile it).
Code to Reproduce This Issue
audio mixer tone
The text was updated successfully, but these errors were encountered: