5using Microsoft.Xna.Framework.Audio;
64 if (!WaveBank.IsPrepared)
121 Engine =
new AudioEngine(
"Content\\TerrariaMusic.xgs");
124 WaveBank =
new WaveBank(
Engine,
"Content\\Wave Bank.xwb", 0, 512);
133 while (!WaveBank.IsPrepared)
162 if (!WaveBank.IsPrepared)
184 if (!WaveBank.IsPrepared)
206 if (!WaveBank.IsPrepared)
240 if (!WaveBank.IsPrepared)
269 if (!WaveBank.IsPrepared)
278 if (!WaveBank.IsPrepared)
308 if (!WaveBank.IsPrepared)
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
void UpdateAmbientCueState(int i, bool gameIsActive, ref float trackVolume, float systemVolume)
bool IsTrackPlaying(int trackIndex)
IEnumerator PrepareWaveBank()
Dictionary< int, IAudioTrack > DefaultTrackByIndex
void UpdateAmbientCueTowardStopping(int i, float stoppingSpeed, ref float trackVolume, float systemVolume)
void UpdateCommonTrack(bool active, int i, float totalVolume, ref float tempFade)
void UpdateCommonTrackTowardStopping(int i, float totalVolume, ref float tempFade, bool isMainTrackAudible)
IAudioTrack FindReplacementTrack(List< IContentSource > sources, string assetPath)
Dictionary< int, string > TrackNamesByIndex
void UseSources(List< IContentSource > sourcesFromLowestToHighest)
IAudioTrack[] AudioTracks
void LoadCue(int cueIndex, string cueName)
List< IContentSource > FileSources
static readonly int maxMusic
static IssueReportsIndicator IssueReporterIndicator
static UnifiedRandom rand
static GeneralIssueReporter IssueReporter
static bool SettingMusicReplayDelayEnabled
Stream OpenStream(string fullAssetName)
Must be threadsafe!
bool HasAsset(string assetName)
Checks Rejections and GetExtension to determine if an asset exists.
string GetExtension(string assetName)
Must be threadsafe!
void SetVariable(string variableName, float value)
void Stop(AudioStopOptions options)