Changeset 677 for trunk/Music.pas


Ignore:
Timestamp:
Jul 26, 2025, 2:00:45 PM (19 hours ago)
Author:
chronos
Message:
  • Fixed: New music player index calculation.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Music.pas

    r669 r677  
    2020    AutoPlayNext: Boolean;
    2121    LibrariesLoaded: Boolean;
     22    NewPlayerIndex: Integer;
    2223    function GetPlaying: Boolean;
    2324    procedure Initialize;
     
    153154  Playlist := TStringList.Create;
    154155  PlayerIndex1 := -1;
     156  NewPlayerIndex := 0;
    155157  FVolume := 1;
    156158end;
     
    213215  if PlayerIndex1 >= 0 then uos_Stop(PlayerIndex1);
    214216
    215   Inc(PlayerIndex1);
     217  PlayerIndex1 := NewPlayerIndex;
     218  Inc(NewPlayerIndex);
    216219
    217220  uos_CreatePlayer(PlayerIndex1);
    218221  uos_EndProc(PlayerIndex1, EndPlay);
    219   //uos_LoopEndProc(PlayerIndex1, LoopEndProc);
    220222
    221223  FileName := GetNextPlaylistItem;
Note: See TracChangeset for help on using the changeset viewer.