Play
Play

Plays the requested sound/music

oSound = mySounds.Play( Path_Name, Loops, Volume, Panning )
oSound = mySounds.Play( Path_Name )
oSound = mySounds.Play( Bank_Index, Loops, Volume, Panning )
oSound = mySounds.Play( Bank_Index )

Return value
A sound object which can be manipulated. Or FALSE.

Parameters
  • Bank_Index
    Name of the file to play from the banks Sounds, Musics or JAMmusic.
  • Path_Name
    Absolute path of the sample/music to play
  • Loops
    No. of times to repeat. -1 = infinite. Default is 1
  • Volume
    Volume to play at, from 0 to 100
  • Panning
    Panning of the sound, from -100 (full left) to 100 (full right)
Comments

Music stored in the JAMmusic bank or external files rather than the Musics bank gives more control. If your project does not have a JAMmusic bank, you can create one by right-clicking on the project name in the project tree and selecting "New Bank". The bank's name is NOT case-sensitive.
Note that music manipulation such as looping and volume is still unavalible.

See also
Special:IsPlaying
Special:Stop



JAM © 2005 no one in partiular
Project started by David Evans in 2005