TSound List Class
Class to manage all sounds (or musics) of a game Use it if you want to register sounds once and play them as many time you need
System.TObject
Gamolf.FMX.MusicLoop.TSoundList
Gamolf.FMX.MusicLoop.TSoundList
The TSoundList type exposes the following members.
Show:
Name | Description | |
---|---|---|
![]() | Add | Overloaded. Add the "filename" sound to the available sounds list at the SoundID position and return True if it's ok |
![]() | Add | Overloaded. Add the "filename" sound to the available sounds list and return it's index |
![]() ![]() | Current | Get the instance of the default sound list to use it as a singleton |
![]() | Mute | Stop all players playing the SoundID |
![]() | MuteAll | Stop all active players |
![]() | Play | Play the sound "SoundID", in a loop or not, and return its Player ID If the sound is played, the result is >= 0 If it returns -1, an error happened |
![]() | Stop | Stop a player by its PlayerID |