645 {
646 int count = tracks.Count();
647 if (count > 0)
648 {
649 int index = Math.RandomInt(0, count);
650
651 switch (lookupType)
652 {
653 case DynamicMusicPlayerTrackHistoryLookupType.ANY:
654 return index;
655
656 case DynamicMusicPlayerTrackHistoryLookupType.BUFFER:
657
659 return index;
660
662 return index;
663
665 }
666 }
667
669 }
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