701 {
702 int count = tracks.Count();
703 if (count > 0)
704 {
706
707 switch (lookupType)
708 {
709 case DynamicMusicPlayerTrackHistoryLookupType.ANY:
710 return index;
711
712 case DynamicMusicPlayerTrackHistoryLookupType.BUFFER:
713
715 return index;
716
718 return index;
719
721 }
722 }
723
725 }
const int TRACKS_BUFFER_HISTORY_SIZE
ref map< EDynamicMusicPlayerCategory, ref SimpleCircularBuffer< int > > m_LastPlayedTrackBufferPerCategory
gets the playback mode as set in sounds menu; 0 - all; 1 - menu only
const int INDEX_NOT_FOUND
static proto int RandomInt(int min, int max)
Returns a random int number between and min [inclusive] and max [exclusive].