Tuniac1/TuniacApp/TuniacApp.cpp
//update streamtitle eg for mp3 streams

update streamtitle eg for mp3 streams
update streamtitle eg for mp3 streams
void	CTuniacApp::UpdateMetaData(LPTSTR szURL, float pNewData, unsigned long ulFieldID)
{
	IPlaylistEntry * pIPE = m_MediaLibrary.GetEntryByURL(szURL);
	if(pIPE)
	{
		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 , float pNewData , unsigned long ulFieldID ) { IPlaylistEntry * pIPE = m_MediaLibrary . GetEntryByURL ( szURL ) ; if ( pIPE ) { 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
//make sure the source selector window exists we can get here before its created
