How can I stream to a MemoryStream, error: (StoreProhibited) #669
-
In the code below, I get the following error. My ultimate goal is to write to a memory object so the next step could be to read the memory object so I can upload the wav file to a webstite.
Here is my error:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You will need to analyze the stacktrace to figure out what the issue is. My gut feeling is that you just run out of memory. Audio is using a lot of memory so you should use either PSRAM or File to store the audio. Or even better do not store the audio at all! ps. it is an interesting idea that the availableForWrite should check the available memory: I think I will extend the logic... |
Beta Was this translation helpful? Give feedback.
You will need to analyze the stacktrace to figure out what the issue is.
My gut feeling is that you just run out of memory. Audio is using a lot of memory so you should use either PSRAM or File to store the audio.
Or even better do not store the audio at all!
ps. it is an interesting idea that the availableForWrite should check the available memory: I think I will extend the logic...