Channel scope

BlitzMax Forums/BlitzMax Programming/Channel scope

siread(Posted 2009) [#1]
Is it ok to do this...

PlaySound(snd_Bomb).SetVolume(0.8)

And will the channel get freed when the sound stops playing?


plash(Posted 2009) [#2]
And will the channel get freed when the sound stops playing?
Yes, I think you should be safe doing that.

As long as there are no more references to the object, it should be free'd.