I’m writting a pocket pc app which can be minimized, and I’d like to release the sound device and get it back again once I get the focus again.
I suppose the correct way to do this is with FSOUND_Init and FSOUND_Close, the problem is that FSOUND_Close also releases all unmanaged samples (which I don’t want)
I suppose muting all channels wouldn’t be acceptable, as other apps can’t get to the sound device.
- Anonymous asked 13 years ago
anyway, i dont see the issue with unmanaged samples, it doesnt free them at all, if you mean FSOUND_UNMANAGED. It cant free them, because it doesnt have any handles to them. (thats what unmanaged means)[/quote:1xag8hmq]
I’m sorry, I meant that frees managed samples, so closing and opening again with functions means I have to reload all managed samples again. (that’s what I wanted to avoid)
I guess my best alternative is making all the samples unmanaged and I’ll free them by myself when I really want to close.
- Anonymous answered 13 years ago
Can you qualify how to do this Brett ? I’m in the same boat here but I’m happy to just mute everything temporarily. However, the FSOUND_SetPaused() doesn’t stop music and the FMUSIC_SetPaused() doesn’t have an ‘all’ flag.
So, I’d like to use your method of turning off the mixer completely, but am unsure how to do it reliably.
FSOUND_DSP_SetActive() has this at the bottom: “Remarks
It is possible to toggle on and off FSOUNDs internal DSP units, though not recommended.”
Please login first to submit.