Ignore:
Timestamp:
Jul 9, 2025, 4:45:12 PM (13 hours ago)
Author:
chronos
Message:
  • Fixed: Playing music on Windows.
Location:
trunk/Packages/uos
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/uos

    • Property svn:ignore set to
      lib
  • trunk/Packages/uos/uos_flat.pas

    r664 r665  
    197197  {$else}
    198198  TProc = procedure of object;
     199  TPlayerProc = procedure(PlayerIndex: cint32) of object;
    199200  {$endif}
    200201
     
    537538 // PlayerIndex : Index of an existing Player
    538539 // InIndex : Index of an existing Input
    539 procedure uos_EndProc(PlayerIndex: cint32; Proc: TProc);
     540procedure uos_EndProc(PlayerIndex: cint32; Proc: TPlayerProc);
    540541
    541542 // Assign the procedure (not of object) to execute at end, after loop
     
    917918 // Stop playing and free thread
    918919procedure uos_Stop(PlayerIndex: cint32);
    919 
    920 // Stop playing and free thread
    921 procedure uos_StopAndWait(PlayerIndex: cint32);
    922920
    923921// Pause playing
     
    22992297end;
    23002298
    2301 procedure uos_StopAndWait(PlayerIndex: cint32);
    2302 begin
    2303   if (length(uosPlayers) > 0) and (PlayerIndex < length(uosPlayers)) then
    2304     if uosPlayersStat[PlayerIndex] = 1 then
    2305       if Assigned(uosPlayers[PlayerIndex]) then
    2306         uosPlayers[PlayerIndex].StopAndWait()
    2307 {$IF DEFINED (mse)}
    2308 {$endif}
    2309   ;
    2310 end;
    2311 
    23122299procedure uos_Pause(PlayerIndex: cint32);// Pause playing
    23132300begin
     
    23282315end;
    23292316
    2330 procedure uos_EndProc(PlayerIndex: cint32; Proc: TProc);
     2317procedure uos_EndProc(PlayerIndex: cint32; Proc: TPlayerProc);
    23312318 // Assign the procedure of object to execute at end, after loop
    23322319 // PlayerIndex : Index of an existing Player
Note: See TracChangeset for help on using the changeset viewer.