Changeset 352 for CoolAudio/Systems/WinAPI/UAudioSystemWindows.pas
- Timestamp:
- Apr 23, 2012, 1:32:52 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CoolAudio/Systems/WinAPI/UAudioSystemWindows.pas
r351 r352 1 1 unit UAudioSystemWindows; 2 2 3 {$mode objfpc}{$H+} 3 {$I UCoolAudioConfig.inc} 4 {$mode delphi}{$H+} 4 5 5 6 interface … … 187 188 Parm: TMCI_Generic_Parms; 188 189 begin 189 FFlags := 0; 190 if FUseNotify then 191 begin 192 if FNotify then FFlags := mci_Notify; 193 FUseNotify := False; 194 end else FFlags := mci_Notify; 195 if FUseWait then 196 begin 197 if FWait then FFlags := FFlags or mci_Wait; 198 FUseWait := False; 199 end; 200 CheckError(mciSendCommand(FDeviceID, mci_Stop, FFlags, Longint(@Parm))); 201 FPlaying := False; 190 if FPlaying then begin 191 FFlags := 0; 192 if FUseNotify then 193 begin 194 if FNotify then FFlags := mci_Notify; 195 FUseNotify := False; 196 end else FFlags := mci_Notify; 197 if FUseWait then 198 begin 199 if FWait then FFlags := FFlags or mci_Wait; 200 FUseWait := False; 201 end; 202 CheckError(mciSendCommand(FDeviceID, mci_Stop, FFlags, Longint(@Parm))); 203 FPlaying := False; 204 Position := 0; 205 end; 202 206 end; 203 207
Note:
See TracChangeset
for help on using the changeset viewer.