Tuniac1/TuniacApp/BasePlaylist.cpp
//gets real index then returns filtered index for item 

gets real index then returns filtered index for item
gets real index then returns filtered index for item
unsigned long		CBasePlaylist::GetFilteredIndexforEntry(IPlaylistEntry	* pIPE)
{
	for(unsigned long x=0; x < m_NormalIndexArray.GetCount(); x++)
	{
		if(tuniacApp.m_Preferences.GetShuffleState())
		{
			if(m_PlaylistArray[m_RandomIndexArray[x]].pIPE == pIPE)
				return x;
		}
		else
		{
			if(m_PlaylistArray[m_NormalIndexArray[x]].pIPE == pIPE)
				return x;
		}
	}
	return INVALID_PLAYLIST_INDEX;
}
unsigned long CBasePlaylist :: GetFilteredIndexforEntry ( IPlaylistEntry * pIPE ) { for ( unsigned long x = 0 ; x < m_NormalIndexArray . GetCount ( ) ; x ++ ) { if ( tuniacApp . m_Preferences . GetShuffleState ( ) ) { if ( m_PlaylistArray [ m_RandomIndexArray [ x ] ] . pIPE == pIPE ) return x ; } else { if ( m_PlaylistArray [ m_NormalIndexArray [ x ] ] . pIPE == pIPE ) return x ; } } return INVALID_PLAYLIST_INDEX ; }
gets real index then returns filtered index for item
gets real index then returns filtered index for item