Sounds

From iRidium Mobile Wiki
Jump to: navigation, search

DOWNLOAD: Example of a project


Description

With iRidiumScript you can:

  • Play sound files
  • Stop playing sound files


Playing Sounds

To play sound files use the command:

IR.PlaySound('File_Name');

  • File_Name - the name of a sound file
IR.AddListener(IR.EVENT_START,0,function() //Event is activated at the application launch
{
 IR.PlaySound('ANGELS_F.WAV'); //The command for playing the sound file
});


Stopping Sounds

Tp stop palying sounds files use the command:

IR.StopSound('File_Name');

  • File_Name - the name of a sound file
IR.AddListener(IR.EVENT_START,0,function() //Event is activated at the application launch
{
 IR.StopSound('ANGELS_F.WAV'); //The command for stopping the sound file
});


DOWNLOAD: Example of a project