Sound and Channels

BlitzMax Forums/BlitzMax Programming/Sound and Channels

Sean Doherty(Posted 2005) [#1]
I not sure what is wrong with my sound. Basically, I allocate a channel and when it stops playing is is deallocated as follows:

Print "Removing"
				StopChannel(pTChannel) 
				g_TChannelList.Remove(pTChannel)


I know that the StopChannel is being called but after enough channels are allocated you can no longer allocate additional channels because there is none available? What am I missing?


Fetze(Posted 2005) [#2]
I've had that problem before and no idea, why there is a problem like this. Just use Playsound or Cuesound which both automatically allocate a channel for you and it will work correctly.


ImaginaryHuman(Posted 2005) [#3]
A need for flushmem to release the objects?


Sean Doherty(Posted 2005) [#4]
I am running version 1.14 and I didn't think you needed FlushMem any more?


Regular K(Posted 2005) [#5]
FlushMem doesnt exist in 1.14


Sean Doherty(Posted 2005) [#6]
Anyone else seen this issue? Maybe it is a bug?


Fetze(Posted 2006) [#7]
I think, it actually is a bug, i already reported it. But it was a double-report and the other bug, also related to sound-issues is fixed now. I think, BRL just forogt it. Maybe someone should report it again?