From c3a168743616db6606702db5ad0fecab4dfee3da Mon Sep 17 00:00:00 2001 From: Alexey Kulakov Date: Thu, 24 Apr 2014 14:55:20 +0000 Subject: Miranda API update Watrack refactoring, API changes git-svn-id: http://svn.miranda-ng.org/main/trunk@9068 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Watrack/players/pl_foobar.pas | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'plugins/Watrack/players/pl_foobar.pas') diff --git a/plugins/Watrack/players/pl_foobar.pas b/plugins/Watrack/players/pl_foobar.pas index 7802440ad6..d2a8343c0b 100644 --- a/plugins/Watrack/players/pl_foobar.pas +++ b/plugins/Watrack/players/pl_foobar.pas @@ -13,12 +13,12 @@ uses {$IFDEF KOL_MCK}err,{$ENDIF} {$IFDEF KOL_MCK} ,kolcomobj {$ELSE} - ,mComObj + ,ComObj {$ENDIF} ; const - COMName:PAnsiChar = 'Foobar2000.Application.0.7'; + COMName:PWideChar = 'Foobar2000.Application.0.7'; const dummywnd = 'uninteresting'; const @@ -38,7 +38,7 @@ const var WinampWindow:HWND; -function proc(awnd:hwnd;param:pdword):boolean; stdcall; +function proc(awnd:HWND;param:pdword):boolean; stdcall; var s:array [0..255] of AnsiChar; begin @@ -258,23 +258,23 @@ var winampwnd:HWND; begin try - result:=WAT_MES_STOPPED; + result:=WAT_PLS_STOPPED; v:=GetActiveOleObject(COMName); tmp:=v.Playback.IsPaused; if tmp then - result:=WAT_MES_PAUSED + result:=WAT_PLS_PAUSED else begin tmp:=v.Playback.IsPlaying; if tmp then - result:=WAT_MES_PLAYING; + result:=WAT_PLS_PLAYING; end; except winampwnd:=WinampFindWindow(wnd); if winampwnd<>0 then result:=WinampGetStatus(winampwnd) else - result:=WAT_MES_UNKNOWN; + result:=WAT_PLS_UNKNOWN; end; v:=null; end; @@ -430,7 +430,7 @@ begin else if (flags and WAT_OPT_CHANGES)<>0 then begin volume:=GetVolume(v); - if status<>WAT_MES_STOPPED then + if status<>WAT_PLS_STOPPED then time:=GetElapsedTime(v); end else -- cgit v1.2.3