Changeset 664 for trunk/Start.pas


Ignore:
Timestamp:
Jul 8, 2025, 9:52:53 PM (12 hours ago)
Author:
chronos
Message:
  • Added: Ability to play music in background in start screen and in-game. Used uos as audio library.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Start.pas

    r660 r664  
    155155uses
    156156  Global, Directories, Direct, ScreenTools, Inp, Back, Settings, KeyBindings,
    157   Languages;
     157  Languages, Music;
    158158
    159159{$R *.lfm}
     
    942942  ChangeTab(ShowTab);
    943943  Background.Enabled := False;
     944
     945  MusicPlayer.LoadPlaylistFromDir(GetMusicDir + DirectorySeparator + 'Start');
     946  MusicPlayer.RandomizePlaylist;
     947  if MusicPlayer.Playlist.Count > 0 then MusicPlayer.Play;
    944948end;
    945949
Note: See TracChangeset for help on using the changeset viewer.