Why does this Playsound code fail?

BlitzMax Forums/BlitzMax Programming/Why does this Playsound code fail?

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.

I think the error is in the following line

Global ChannelBang:TChannel =New TChannel

It should be
Global ChannelBang:TChannel = AllocChannel()