NowPlayingPlugin:

- Added preliminary support to display lyrics (PlayerType=LYRICS)
- Applied r825 fix on TrackChangeAction= (sends bang to correct window without the need of #CURRENTCONFIG#)
- Some refactoring
This commit is contained in:
Birunthan Mohanathas
2011-06-19 14:58:48 +00:00
parent 6aa004eb22
commit d633f4b586
29 changed files with 1181 additions and 329 deletions

View File

@ -19,7 +19,7 @@
#include "StdAfx.h"
#include "PlayerWMP.h"
extern CPlayer* g_WMP;
CPlayer* CPlayerWMP::c_Player = NULL;
/*
** CRemoteHost
@ -170,11 +170,27 @@ CPlayerWMP::CPlayerWMP() : CPlayer(),
*/
CPlayerWMP::~CPlayerWMP()
{
g_WMP = NULL;
c_Player = NULL;
Uninitialize();
m_ComModule.Term();
}
/*
** Create
**
** Creates a shared class object.
**
*/
CPlayer* CPlayerWMP::Create()
{
if (!c_Player)
{
c_Player = new CPlayerWMP();
}
return c_Player;
}
/*
** Initialize
**
@ -450,9 +466,14 @@ void CPlayerWMP::UpdateData()
}
else
{
GetCover(m_Artist, m_Title, m_FilePath, m_CoverPath);
FindCover();
}
}
if (m_HasLyricsMeasure)
{
FindLyrics();
}
}
}
}