-- Lingo syntax sound(intSoundChannel) // JavaScript syntax sound(intSoundChannel);
Top level function; returns a reference to a specified sound channel.
The functionality of this method is identical to the Sound objects channel() method.
intSoundChannel Required. An integer that specifies the sound channel to reference.
The following example assigns sound channel 1 to a variable music and plays a sound.
-- Lingo syntax
music = sound(1)
music.play(member("waltz1"))
// JavaScript syntax
var music = sound(1);
music.play(member("waltz1"));