DIFF

class DynamicMusicPlayerSource

Constructors 1

Constants 7

protected const float TICK_TIME_OF_DATE_UPDATE_SECONDS = 10.0
Referenced by DisplayDebugStats(), and OnUpdate()
protected const float TICK_LOCATION_CACHE_UPDATE_SECONDS = 10.0
Referenced by DisplayDebugStats(), and OnUpdate()
protected const float TICK_LOCATION_UPDATE_SECONDS = 5.0
Referenced by DisplayDebugStats(), and OnUpdate()
protected const float TICK_PRIORITY_LOCATION_UPDATE_SECONDS = 2.0
Referenced by DisplayDebugStats(), and OnUpdate()
protected const float TICK_FADEOUT_PROCESSOR_SECONDS = 0.2
Referenced by OnUpdate()
protected const int TRACKS_BUFFER_HISTORY_SIZE = 2
protected const float LOCATION_DISTANCE_MAX = 500
Referenced by RefreshTracksCache()

Members 25

protected float m_TickTimeOfDateElapsed
Referenced by DisplayDebugStats(), and OnUpdate()
protected float m_TickLocationCacheUpdateElapsed
Referenced by DisplayDebugStats(), and OnUpdate()
protected float m_TickLocationUpdateElapsed
Referenced by DisplayDebugStats(), and OnUpdate()
protected float m_TickPriorityLocationUpdateElapsed
Referenced by DisplayDebugStats(), and OnUpdate()
protected float m_TickFadeOutProcessingElapsed
Referenced by OnUpdate()
protected int m_ActualTimeOfDay
private ref array<ref DynamicMusicTrackData> m_TracksLocationStaticCached

map of dynamically registered locations during runtime

private ref array<ref DynamicMusicTrackData> m_TracksLocationStaticPrioritizedCached

static prio + filtered by the distance between player and center of zone

protected ref array<ref DynamicMusicTrackData> m_TracksLocationMatchedPlayerInside
private int m_RequestedPlaybackMode
private ref map<EDynamicMusicPlayerCategory, ref SimpleCircularBuffer<int>> m_LastPlayedTrackBufferPerCategory

gets the playback mode as set in sounds menu; 0 - all; 1 - menu only

private vector m_PlayerPosition
private float m_FadeoutTimeElapsed
private float m_FadeoutTimeRequested
Referenced by DynamicMusicPlayer(), FadeoutTrack(), OnUpdate()
Show 1 more, ProcessFadeOut()
private bool m_FadeoutInProgress
Referenced by FadeoutTrack(), and OnUpdate()
private ref array<Shape> m_DebugShapesLocations = new array<Shape>()DIAG_DEVELOPER
private ref array<Shape> m_DebugShapesLocationsVertices = new array<Shape>()DIAG_DEVELOPER
private float m_DebugWaitTime = 0DIAG_DEVELOPER

Methods 37

void UnregisterDynamicLocation(notnull Entity caller)
protected bool IsPriotitizedCategorySelected()
protected bool IsPlaybackActive()
protected void OnProfileOptionChanged(EDayZProfilesOptions option, int value)

Events --------------------------------------------------------------------------------

protected void OnCategorySet(EDynamicMusicPlayerCategory category, bool forced)
Referenced by SetCategory()
protected void OnTrackEnded()
protected void OnTrackStopped()
private void StopTrack()

invalid sound set is used

private void ResetWaitingQueue()
private void ProcessFadeOut()
Referenced by OnUpdate()
private int SelectRandomTrackIndexFromCategoryPriorityFlagFirst(EDynamicMusicPlayerCategory category, notnull array<ref DynamicMusicTrackData> tracks)

currently prioritize main menu track on DMP start

private void SetTimeOfDate()
private float GetPreviousTrackFadeoutSeconds(EDynamicMusicPlayerCategory category)
Referenced by SetCategory()
private void DrawPolygonLocation(notnull DynamicMusicTrackData track)DIAG_DEVELOPER

force the height of box for debug

private void CleanupDebugShapes(array<Shape> shapesArr)

DEPRECATED