Skip to content

How can I stream to a MemoryStream, error: (StoreProhibited) #669

Answered by pschatzmann
ksaye asked this question in Q&A
Discussion options

You must be logged in to vote

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...

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@pschatzmann
Comment options

Answer selected by pschatzmann
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants