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

◆ CurrentPosition

float SoundInstance.CurrentPosition
getset

Definition at line 66 of file SoundInstance.cs.

67 {
68 get
69 {
70 /*
71An exception occurred when decompiling this method (060001B1)
72
73ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single SoundInstance::get_CurrentPosition()
74
75 ---> System.Exception: Basic block has to end with unconditional control flow.
76{
77 Block_0:
78 stloc:AudioSource(var_1_10, ldfld:AudioSource(SoundChannel::AudioSource, ldloc:SoundChannel(var_0_06)))
79 stloc:float32(var_3_21, callgetter:float32(AudioSource::get_time, ldfld:AudioSource(SoundChannel::AudioSource, ldfld:SoundChannel(SoundInstance::_channel, ldloc:SoundInstance(this)))))
80}
81
82 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
83 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
84 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
85 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
86 --- End of inner exception stack trace ---
87 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
88 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
89*/;
90 }
91 set
92 {
93 SoundChannel channel = this._channel;
94 if (channel != null)
95 {
97 float length = this.Clip.length;
100 if (channel2 == null)
101 {
102 }
105 DateTime dateTime = utcNow + timeSpan;
106 this.FinishTime = dateTime;
107 }
108 }
109 }
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

Referenced by Microsoft.Xna.Framework.Audio.Cue.Pause().