-
|
I am adding hot-reloading for assets in my engine and the only remaining resource type is sounds. I use |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
The only way is to uninitialize every reference to the sound and reload them. An alternative could be to use |
Beta Was this translation helpful? Give feedback.
The only way is to uninitialize every reference to the sound and reload them. An alternative could be to use
ma_sound_init_from_data_source()and plug in your own custom data source that does all your resource management itself, but that would require a lot manual work on your part. You'd have to manage yourma_decoderobjects yourself, and you won't get access to background loading and all the other stuff the internal resource manager provides unless you also do that yourself.