MaxMod Streaming ChannelPlaying() incorrect...

BlitzMax Forums/BlitzMax Programming/MaxMod Streaming ChannelPlaying() incorrect...

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

MaxMod Streamed music returns an incorrect value when the ChannelPlaying() method is called e.g.

Import MaxMod.AudioStream
Import MaxMod.OGG

Incbin "Project/media/sfx/tracks/tune1.ogg"
Incbin "Project/media/sfx/tracks/tune2.ogg"

Graphics 100,100

If EnableOpenALAudio()
	If SetAudioDriver("OpenAL Generic Software")
		Local aMusicChannel:TChannel = AllocChannel()
		If ChannelPlaying(aMusicChannel) = False
			aMusicChannel = CreateAudioStream("incbin::Project/media/sfx/tracks/tune1.ogg")
		EndIf
		
		Delay(1000)
		
		If ChannelPlaying(aMusicChannel) Then
			aMusicChannel.Stop()
			
			'Local bMusicChannel:TChannel = AllocChannel()
			If ChannelPlaying(aMusicChannel) = False
				aMusicChannel = CreateAudioStream("incbin::Project/media/sfx/tracks/tune2.ogg")
			EndIf
		Else
			Print "Music not playing - Issue"
		End If
		WaitKey()
		End
	EndIf
EndIf


What should happen here is tune1 should be streamed and play for a second then tune1 should be stopped and tune2 should play.

What happens tune1 playes and the program prints "Music not playing - Issue"

When ChannelPlaying() is called it returns false when the first track can be heard playing?