TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ CloseStream()

static void Terraria.ModLoader.MusicLoader.CloseStream ( string musicPath)
inlinestaticpackage

Definition at line 245 of file MusicLoader.cs.

246 {
247 if (Main.audioSystem is LegacyAudioSystem legacyAudioSystem)
248 {
250 if (slot < legacyAudioSystem.AudioTracks.Length)
251 {
252 legacyAudioSystem.AudioTracks[slot]?.Dispose();
253 }
254 }
255 }
static readonly Dictionary< string, int > musicByPath

References Terraria.Main.audioSystem, and Terraria.ModLoader.MusicLoader.musicByPath.

Referenced by Terraria.ModLoader.MusicLoader.CloseModStreams().

+ Here is the caller graph for this function: