Exemplo n.º 1
0
void CPlayCenter::CheckSong(spSongInfoT& spSong)
{
	assert(spSong);
	if(!spSong) return;
	spSong->SetAblumName(spSong->GetAlbumName().IsEmpty()?_T("未知"):spSong->GetAlbumName());
	spSong->SetSongName(spSong->GetSongName().IsEmpty()?mci::rip_file_name(spSong->GetLocalPath(),false):spSong->GetSongName());
	spSong->SetArtistName(spSong->GetArtistName().IsEmpty()?_T("未知"):spSong->GetArtistName());
	spSong->SetRealArtistName(spSong->GetRealArtistName().IsEmpty()?_T("未知"):spSong->GetRealArtistName());

}