Freeing Audio Channel

BlitzMax Forums/BlitzMax Programming/Freeing Audio Channel

Tachyon(Posted 2008) [#1]
If I have this function that I frequently call:

'//pseudo-code
Function Sound(file:string)
   Local wav:TSound = LoadSound(file)
   Local Ch:TChannel = AllocChannel()
   CueSound (Wav,Ch)
   ResumeChannel(Ch)
   Return
End Function

Am I in danger of a memory leak because I am not freeing these channels by using StopChannel on them?


tonyg(Posted 2008) [#2]
This?