If you go to the doc entry for any command, you will see that they show you what type of object they return.
For instance...
Function LoadSound:TSound( url:Object,loop_flag=False )
See that :TSound? This is telling you that the LoadSound() command returns a TSound object, so, you must declare any sound object as a TSound object...
Local sound:TSound = LoadSound("mysound.wav")The PlaySound() command looks like this...
Function PlaySound:TChannel( sound:TSound,channel:TChannel=Null )
You should be able to spot the error in your code now. :o)
[edit]
I should probably explain that any command that doesn't show a return type...
Function ResumeChannel( channel:TChannel )
Is returning an integer (:Int).
[/edit]