Changeset 349 for branches/highdpi/Packages/CevoComponents/Sound.pas
- Timestamp:
- Apr 6, 2021, 8:11:02 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/highdpi/Packages/CevoComponents/Sound.pas
r303 r349 11 11 type 12 12 TPlayStyle = (psAsync, psSync); 13 TSoundMode = (smOff, smOn, smOnAlt); 13 14 14 15 { TSoundPlayer } … … 18 19 {$IFDEF WINDOWS} 19 20 PrevWndProc: WNDPROC; 20 procedure OnMCI(var m: TMessage); message MM_MCINOTIFY;21 procedure OnMCI(var Msg: TMessage); message MM_MCINOTIFY; 21 22 public 22 23 constructor Create(AOwner: TComponent); override; … … 50 51 procedure PreparePlay(Item: string; Index: Integer = -1); 51 52 52 const53 // sound modes54 smOff = 0;55 smOn = 1;56 smOnAlt = 2;57 58 53 var 59 54 Sounds: TStringTable; 60 SoundMode: Integer;55 SoundMode: TSoundMode; 61 56 SoundPlayer: TSoundPlayer; 62 57 SoundList: TFPGObjectList<TSound>; … … 260 255 end; 261 256 262 procedure TSoundPlayer.OnMCI(var m: TMessage);263 begin 264 if ( m.wParam = MCI_NOTIFY_SUCCESSFUL) and (PlayingSound <> nil) then257 procedure TSoundPlayer.OnMCI(var Msg: TMessage); 258 begin 259 if (Msg.wParam = MCI_NOTIFY_SUCCESSFUL) and (PlayingSound <> nil) then 265 260 begin 266 261 PlayingSound.Reset;
Note:
See TracChangeset
for help on using the changeset viewer.