Delicious Cake
✅ How to play an MP3 from byte data array instead of writing it to a file and then playing it?
Hey, anyone know how I can play an MP3 directly from a byte array?
This is what I currently have which works but I'd like to avoid writing it to an .mp3 file as there's no point in keeping it and it feels wrong to
Write > Play > Delete
if I can just play it directly from the byte array.
4 replies
✅ ERROR: The calling thread cannot access this object because a different thread owns it.
Hey, I'm getting this error
The calling thread cannot access this object because a different thread owns it.
from the following method when trying to add a Run
element to a RichTextBox
I've tried Googling a ton and even tried ChatGPT to see if it could fix it for me, all answers point to use chatRichTextBox.Dispatcher.Invoke
but it still fails, any ideas?
23 replies