Tuniac1/TuniacApp/TuniacApp.cpp
void	CTuniacApp::UpdateMetaData(LPTSTR szURL, unsigned long pNewData, unsigned long ulFieldID)
{
	IPlaylistEntry * pIPE = m_MediaLibrary.GetEntryByURL(szURL);

	if(pIPE)
	{
		// streams can not get their own playcount
		if (ulFieldID == FIELD_PLAYCOUNT)
			pNewData = (unsigned long)pIPE->GetField(FIELD_PLAYCOUNT) + pNewData;

		pIPE->SetField(ulFieldID, pNewData);

		UpdateTitles();
		//make sure the source selector window exists we can get here before its created
		if(m_SourceSelectorWindow)
			m_SourceSelectorWindow->UpdateView();
		if(PathIsURL(szURL) && ulFieldID == FIELD_ARTIST)
		{
			if(GetForegroundWindow() == m_hWnd && !IsIconic(m_hWnd))
				m_PluginManager.PostMessage(PLUGINNOTIFY_SONGCHANGE, NULL, NULL);
			else
				m_PluginManager.PostMessage(PLUGINNOTIFY_SONGCHANGE_BLIND, NULL, NULL);
		}

		m_PluginManager.PostMessage(PLUGINNOTIFY_SONGINFOCHANGE, NULL, NULL);
	}
}
//update streamtitle eg for mp3 streams

update streamtitle eg for mp3 streams
update streamtitle eg for mp3 streams
void	CTuniacApp::UpdateMetaData(LPTSTR szURL, unsigned long pNewData, unsigned long ulFieldID)
{
	IPlaylistEntry * pIPE = m_MediaLibrary.GetEntryByURL(szURL);
	if(pIPE)
	{
		if (ulFieldID == FIELD_PLAYCOUNT)
			pNewData = (unsigned long)pIPE->GetField(FIELD_PLAYCOUNT) + pNewData;
		pIPE->SetField(ulFieldID, pNewData);
		UpdateTitles();
		if(m_SourceSelectorWindow)
			m_SourceSelectorWindow->UpdateView();
		if(PathIsURL(szURL) && ulFieldID == FIELD_ARTIST)
		{
			if(GetForegroundWindow() == m_hWnd && !IsIconic(m_hWnd))
				m_PluginManager.PostMessage(PLUGINNOTIFY_SONGCHANGE, NULL, NULL);
			else
				m_PluginManager.PostMessage(PLUGINNOTIFY_SONGCHANGE_BLIND, NULL, NULL);
		}
		m_PluginManager.PostMessage(PLUGINNOTIFY_SONGINFOCHANGE, NULL, NULL);
	}
}
void CTuniacApp :: UpdateMetaData ( LPTSTR szURL , unsigned long pNewData , unsigned long ulFieldID ) { IPlaylistEntry * pIPE = m_MediaLibrary . GetEntryByURL ( szURL ) ; if ( pIPE ) { if ( ulFieldID == FIELD_PLAYCOUNT ) pNewData = ( unsigned long ) pIPE -> GetField ( FIELD_PLAYCOUNT ) + pNewData ; pIPE -> SetField ( ulFieldID , pNewData ) ; UpdateTitles ( ) ; if ( m_SourceSelectorWindow ) m_SourceSelectorWindow -> UpdateView ( ) ; if ( PathIsURL ( szURL ) && ulFieldID == FIELD_ARTIST ) { if ( GetForegroundWindow ( ) == m_hWnd && ! IsIconic ( m_hWnd ) ) m_PluginManager . PostMessage ( PLUGINNOTIFY_SONGCHANGE , NULL , NULL ) ; else m_PluginManager . PostMessage ( PLUGINNOTIFY_SONGCHANGE_BLIND , NULL , NULL ) ; } m_PluginManager . PostMessage ( PLUGINNOTIFY_SONGINFOCHANGE , NULL , NULL ) ; } }
update streamtitle eg for mp3 streams
update streamtitle eg for mp3 streams
// streams can not get their own playcount
 //make sure the source selector window exists we can get here before its created
