openPlayer


function openPlayer(resource:string; mimetype:string):boolean;

Opens a given resource file in the audio player. The resource is not played before 'startPlayer' is called. The function will return false if it did not succedd. 'mimetype' can be any of the following:

Note that devices usually do not support all sound formats.

Compatibility: the music functions will work only on MIDP-2.0 compatible mobile phones. MIDlets with sound support will CRASH on MIDP-1.0 phones!

  begin
	
    if not openPlayer('/explosion.mid', 'audio/midi') then  halt;	
    if not setPlayerCount(-1) then halt;
    if not startPlayer then halt;

    delay(5000);	
  end.