Tuniac1/TuniacApp/BasePlaylist.cpp
//get the item at filtered ulIndex for m_NormalIndexArray/m_RandomIndexArray

get the item at filtered ulIndex for m_NormalIndexArray/m_RandomIndexArray
get the item at filtered ulIndex for m_NormalIndexArray / m_RandomIndexArray
IPlaylistEntry *	CBasePlaylist::GetEntryAtFilteredIndex(unsigned long ulFilteredIndex)
{
	unsigned long ulRealIndex = INVALID_PLAYLIST_INDEX;
	if(tuniacApp.m_Preferences.GetShuffleState())
		ulRealIndex = RandomFilteredIndexToRealIndex(ulFilteredIndex);
	else
		ulRealIndex = NormalFilteredIndexToRealIndex(ulFilteredIndex);
	if(ulRealIndex != INVALID_PLAYLIST_INDEX)
	{
		return m_PlaylistArray[ulRealIndex].pIPE;
	}
	return NULL;
}
IPlaylistEntry * CBasePlaylist :: GetEntryAtFilteredIndex ( unsigned long ulFilteredIndex ) { unsigned long ulRealIndex = INVALID_PLAYLIST_INDEX ; if ( tuniacApp . m_Preferences . GetShuffleState ( ) ) ulRealIndex = RandomFilteredIndexToRealIndex ( ulFilteredIndex ) ; else ulRealIndex = NormalFilteredIndexToRealIndex ( ulFilteredIndex ) ; if ( ulRealIndex != INVALID_PLAYLIST_INDEX ) { return m_PlaylistArray [ ulRealIndex ] . pIPE ; } return NULL ; }
get the item at filtered ulIndex for m_NormalIndexArray/m_RandomIndexArray
get the item at filtered ulIndex for m_NormalIndexArray / m_RandomIndexArray