summaryrefslogtreecommitdiff
path: root/plugins/Watrack/players/pl_foobar.pas
diff options
context:
space:
mode:
authorAlexey Kulakov <panda75@bk.ru>2014-04-24 14:55:20 +0000
committerAlexey Kulakov <panda75@bk.ru>2014-04-24 14:55:20 +0000
commitc3a168743616db6606702db5ad0fecab4dfee3da (patch)
tree523ef1399093917f3565d769826ceecb7eb2ef6c /plugins/Watrack/players/pl_foobar.pas
parent90ad600cb38a04c9272a3599c72d6559c822b155 (diff)
Miranda API update
Watrack refactoring, API changes git-svn-id: http://svn.miranda-ng.org/main/trunk@9068 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Watrack/players/pl_foobar.pas')
-rw-r--r--plugins/Watrack/players/pl_foobar.pas16
1 files changed, 8 insertions, 8 deletions
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