698 {
699 int count = tracks.Count();
700 if (count > 0)
701 {
703
704 switch (lookupType)
705 {
706 case DynamicMusicPlayerTrackHistoryLookupType.ANY:
707 return index;
708
709 case DynamicMusicPlayerTrackHistoryLookupType.BUFFER:
710
712 return index;
713
715 return index;
716
718 }
719 }
720
722 }
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].