audio.loadStream() - how to stop playback to dispose of properly?

Hi All,

I’m reading the API documentation and it states that an audio object that you’ve loaded with audio.loadStream needs to not be playing or be paused before you can dispose of it with audio.dispose(). How do I do that? audio.stop() apparently doesn’t work with streamed sounds.

Basically I’m doing my in game music and need to stop it and dispose it when the player transitions to another screen.

Thanks for any advice anyone can share :slight_smile:

audio.stop() works both with sounds and streams

Hi Piotrz55, I appreciate the info. I’ve looked at the API again and see that I was misreading/misunderstanding it. Thanks

audio.stop() works both with sounds and streams

Hi Piotrz55, I appreciate the info. I’ve looked at the API again and see that I was misreading/misunderstanding it. Thanks