TMusicLoop Class

Class to play an individual sound or a music (as background loop or not)

Unit: Gamolf.FMX.MusicLoop
System.TObject
  Gamolf.FMX.MusicLoop.TMusicLoop
type TMusicLoop = class(TObject)

The TMusicLoop type exposes the following members.

Show:
 NameDescription
Create

Create an instance of a TMusicLoop or use "TMusicLoop.Current" to use the default one

Destroy

Destroy this instance

Top
Show:
 NameDescription
AudioPaused

Filename

Volume

Set or get volume level for current playing sound or music

audioActif

audioEnBoucle

audioOn

tag

Top
Show:
 NameDescription
Current

Get the instance of the default music loop to use it as a singleton

CurrentTimeInSeconds

Return current playing time in seconds

DurationInSeconds

Return the music duration in seconds

IsActive

Check if a sound or music file is loaded

IsPlaying

Check if a sound or music is playing

Load

Load a music or sound (file formats depend on the operating system). You can try MP3 for music and WAV for sounds

Pause

Stop the music or restart it if it was paused

Play

Overloaded. Play current soound or music in an infinite loop or one time

Play

Overloaded. Load and play a sound or music

PlaySound

Just play current sound once time

Stop

Stop current play (sound or music)

isPaused

Return true if the music is in pause

Top