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
SoundEffectInstance.cs
Go to the documentation of this file.
1using System;
3
5{
6 // Token: 0x020003D0 RID: 976
7 public class SoundEffectInstance
8 {
9 // Token: 0x17000379 RID: 889
10 // (get) Token: 0x06001A7A RID: 6778 RVA: 0x0006CBC8 File Offset: 0x0006ADC8
11 // (set) Token: 0x06001A7B RID: 6779 RVA: 0x0006CBDC File Offset: 0x0006ADDC
12 public virtual bool IsLooped
13 {
14 get
15 {
16 return this._loop;
17 }
18 set
19 {
20 }
21 }
22
23 // Token: 0x1700037A RID: 890
24 // (get) Token: 0x06001A7C RID: 6780 RVA: 0x0006CBEC File Offset: 0x0006ADEC
25 // (set) Token: 0x06001A7D RID: 6781 RVA: 0x0006CC00 File Offset: 0x0006AE00
26 public float Pan
27 {
28 get
29 {
30 /*
31An exception occurred when decompiling this method (06001A7C)
32
33ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single Microsoft.Xna.Framework.Audio.SoundEffectInstance::get_Pan()
34
35 ---> System.Exception: Basic block has to end with unconditional control flow.
36{
37 Block_0:
38 stloc:float32(var_0_06, ldfld:float32(SoundEffectInstance::_pan, ldloc:SoundEffectInstance(this)))
39}
40
41 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
42 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
43 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
44 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
45 --- End of inner exception stack trace ---
46 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
47 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
48*/;
49 }
50 set
51 {
53 if (playingInstance != null)
54 {
56 return;
57 }
58 }
59 }
60
61 // Token: 0x1700037B RID: 891
62 // (get) Token: 0x06001A7E RID: 6782 RVA: 0x0006CC20 File Offset: 0x0006AE20
63 // (set) Token: 0x06001A7F RID: 6783 RVA: 0x0006CC34 File Offset: 0x0006AE34
64 public float Pitch
65 {
66 get
67 {
68 /*
69An exception occurred when decompiling this method (06001A7E)
70
71ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single Microsoft.Xna.Framework.Audio.SoundEffectInstance::get_Pitch()
72
73 ---> System.Exception: Basic block has to end with unconditional control flow.
74{
75 Block_0:
76 stloc:float32(var_0_06, ldfld:float32(SoundEffectInstance::_pitch, ldloc:SoundEffectInstance(this)))
77}
78
79 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
80 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
81 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
82 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
83 --- End of inner exception stack trace ---
84 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
85 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
86*/;
87 }
88 set
89 {
91 if (playingInstance != null)
92 {
93 if (!true)
94 {
95 float pitch = this._pitch;
96 }
97 playingInstance.SetPitch(value);
98 return;
99 }
100 }
101 }
102
103 // Token: 0x1700037C RID: 892
104 // (get) Token: 0x06001A80 RID: 6784 RVA: 0x0006CC60 File Offset: 0x0006AE60
105 // (set) Token: 0x06001A81 RID: 6785 RVA: 0x0006CC74 File Offset: 0x0006AE74
106 public float Volume
107 {
108 get
109 {
110 /*
111An exception occurred when decompiling this method (06001A80)
112
113ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single Microsoft.Xna.Framework.Audio.SoundEffectInstance::get_Volume()
114
115 ---> System.Exception: Basic block has to end with unconditional control flow.
116{
117 Block_0:
118 stloc:float32(var_0_06, ldfld:float32(SoundEffectInstance::_volume, ldloc:SoundEffectInstance(this)))
119}
120
121 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
122 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
123 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
124 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
125 --- End of inner exception stack trace ---
126 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
127 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
128*/;
129 }
130 set
131 {
133 if (playingInstance != null)
134 {
136 playingInstance.SetVolume(value);
137 return;
138 }
139 }
140 }
141
142 // Token: 0x1700037D RID: 893
143 // (get) Token: 0x06001A82 RID: 6786 RVA: 0x0006CCA4 File Offset: 0x0006AEA4
144 public virtual SoundState State
145 {
146 get
147 {
149 if (playingInstance != null)
150 {
151 SoundChannel channel = playingInstance._channel;
152 if (channel != null)
153 {
157 bool flag = utcNow < finishTime;
158 }
159 }
160 return SoundState.Stopped;
161 }
162 }
163
164 // Token: 0x06001A83 RID: 6787 RVA: 0x0006CCF4 File Offset: 0x0006AEF4
166 {
167 this._effect = effect;
168 }
169
170 // Token: 0x06001A84 RID: 6788 RVA: 0x0006CD10 File Offset: 0x0006AF10
171 public virtual void Play()
172 {
173 if (this != null)
174 {
176 return;
177 }
178 }
179
180 // Token: 0x06001A85 RID: 6789 RVA: 0x0006CD6C File Offset: 0x0006AF6C
181 private static void PlayOnMainThread(object data)
182 {
183 }
184
185 // Token: 0x06001A86 RID: 6790 RVA: 0x0006CD7C File Offset: 0x0006AF7C
186 private static void StopOnMainThread(object data)
187 {
188 }
189
190 // Token: 0x06001A87 RID: 6791 RVA: 0x0006CD8C File Offset: 0x0006AF8C
191 public void Restart()
192 {
194 if (playingInstance != null)
195 {
197 return;
198 }
199 }
200
201 // Token: 0x06001A88 RID: 6792 RVA: 0x0006CDAC File Offset: 0x0006AFAC
202 public virtual void Pause()
203 {
204 }
205
206 // Token: 0x06001A89 RID: 6793 RVA: 0x0006CDBC File Offset: 0x0006AFBC
207 public virtual void Resume()
208 {
209 }
210
211 // Token: 0x06001A8A RID: 6794 RVA: 0x0006CDCC File Offset: 0x0006AFCC
212 public virtual void Stop(bool immediate = false)
213 {
215 }
216
217 // Token: 0x1700037E RID: 894
218 // (get) Token: 0x06001A8B RID: 6795 RVA: 0x0006CDF4 File Offset: 0x0006AFF4
219 // (set) Token: 0x06001A8C RID: 6796 RVA: 0x0006CE14 File Offset: 0x0006B014
220 public float CurrentPosition
221 {
222 get
223 {
224 /*
225An exception occurred when decompiling this method (06001A8B)
226
227ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single Microsoft.Xna.Framework.Audio.SoundEffectInstance::get_CurrentPosition()
228
229 ---> System.Exception: Basic block has to end with unconditional control flow.
230{
231 Block_0:
232 stloc:float32(var_1_10, callgetter:float32(SoundInstance::get_CurrentPosition, ldloc:SoundInstance(var_0_06)))
233}
234
235 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
236 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
237 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
238 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
239 --- End of inner exception stack trace ---
240 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
241 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
242*/;
243 }
244 set
245 {
247 if (playingInstance != null)
248 {
250 return;
251 }
252 }
253 }
254
255 // Token: 0x06001A8D RID: 6797 RVA: 0x0006CE34 File Offset: 0x0006B034
256 // Note: this type is marked as 'beforefieldinit'.
258 {
259 }
260
261 // Token: 0x040027DF RID: 10207
263
264 // Token: 0x040027E0 RID: 10208
265 private bool _loop;
266
267 // Token: 0x040027E1 RID: 10209
268 private float _pan;
269
270 // Token: 0x040027E2 RID: 10210
271 private float _volume;
272
273 // Token: 0x040027E3 RID: 10211
274 private float _pitch;
275
276 // Token: 0x040027E4 RID: 10212
278
279 // Token: 0x040027E5 RID: 10213
280 public static float pitchOffset;
281
282 // Token: 0x040027E6 RID: 10214
283 public static float pitchScale;
284 }
285}
class f__AnonymousType0<< Count > j__TPar
SoundInstance _currentSound
void SetPitch(float pitch)
void SetVolume(float volume)
DateTime FinishTime
void SetPan(float pan)
static Thread CurrentThread
Definition Thread.cs:381
static DateTime UtcNow
Definition DateTime.cs:1318