terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ Restart()

void SoundInstance.Restart ( )
inline

Definition at line 44 of file SoundInstance.cs.

45 {
46 SoundChannel channel = this._channel;
47 if (channel != null)
48 {
50 float length = this.Clip.length;
53 if (channel2 == null)
54 {
55 }
58 DateTime dateTime = utcNow + timeSpan;
59 this.FinishTime = dateTime;
60 }
61 }
class f__AnonymousType0<< Count > j__TPar
AudioSource AudioSource
readonly AudioClip Clip
SoundChannel _channel
static DateTime UtcNow
Definition DateTime.cs:1318
static TimeSpan FromSeconds(double value)
Definition TimeSpan.cs:284

References _channel, SoundChannel.AudioSource, Clip, System.TimeSpan.FromSeconds(), j__TPar, System.length, UnityEngine.AudioClip.length, and System.DateTime.UtcNow.

Referenced by Microsoft.Xna.Framework.Audio.SoundEffectInstance.Restart().