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
SoundEngine.cs
Go to the documentation of this file.
1using System;
8
9namespace Terraria.Audio
10{
11 // Token: 0x0200068B RID: 1675
12 public static class SoundEngine
13 {
14 // Token: 0x170006C4 RID: 1732
15 // (get) Token: 0x060037F5 RID: 14325 RVA: 0x000021DB File Offset: 0x000003DB
16 // (set) Token: 0x060037F6 RID: 14326 RVA: 0x00224AA4 File Offset: 0x00222CA4
17 public static bool IsAudioSupported
18 {
20 get
21 {
22 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
23 }
25 private set
26 {
27 }
28 }
29
30 // Token: 0x060037F7 RID: 14327 RVA: 0x00224AB4 File Offset: 0x00222CB4
31 public static void Initialize()
32 {
33 }
34
35 // Token: 0x060037F8 RID: 14328 RVA: 0x00224AC4 File Offset: 0x00222CC4
36 public static void Load(IServiceProvider services)
37 {
38 }
39
40 // Token: 0x060037F9 RID: 14329 RVA: 0x00224AD4 File Offset: 0x00222CD4
41 public static void Update()
42 {
44 }
45
46 // Token: 0x060037FA RID: 14330 RVA: 0x00224AEC File Offset: 0x00222CEC
47 public static void Reload()
48 {
49 }
50
51 // Token: 0x060037FB RID: 14331 RVA: 0x00224AFC File Offset: 0x00222CFC
52 public static void PlaySound(int type, Vector2 position, int style = 1)
53 {
54 }
55
56 // Token: 0x060037FC RID: 14332 RVA: 0x00224B0C File Offset: 0x00222D0C
62
63 // Token: 0x060037FD RID: 14333 RVA: 0x00224B1C File Offset: 0x00222D1C
64 public static SoundEffectInstance PlaySound(LegacySoundStyle type, int x = -1, int y = -1)
65 {
68 }
69
70 // Token: 0x060037FE RID: 14334 RVA: 0x00224B2C File Offset: 0x00222D2C
71 public static SoundEffectInstance PlaySound(int type, int x = -1, int y = -1, int Style = 1, float volumeScale = 1f, float pitchOffset = 0f)
72 {
73 if (!true)
74 {
75 }
76 if (true)
77 {
78 }
81 }
82
83 // Token: 0x060037FF RID: 14335 RVA: 0x00224B44 File Offset: 0x00222D44
85 {
86 if (!true)
87 {
88 }
89 if (true)
90 {
91 }
93 return activeSound;
94 }
95
96 // Token: 0x06003800 RID: 14336 RVA: 0x00224B5C File Offset: 0x00222D5C
97 public static SlotId PlayTrackedSound(SoundStyle style, Vector2 position)
98 {
99 if (!true)
100 {
101 }
102 if (true)
103 {
104 if (!true)
105 {
106 }
107 return 1;
108 }
110 return slotId;
111 }
112
113 // Token: 0x06003801 RID: 14337 RVA: 0x00224B78 File Offset: 0x00222D78
115 {
116 if (!true)
117 {
118 }
119 if (true)
120 {
121 if (!true)
122 {
123 }
124 return 1;
125 }
127 return slotId;
128 }
129
130 // Token: 0x06003802 RID: 14338 RVA: 0x00224B94 File Offset: 0x00222D94
131 public static SlotId PlayTrackedSound(SoundStyle style)
132 {
133 if (!true)
134 {
135 }
136 if (true)
137 {
138 if (!true)
139 {
140 }
141 return 1;
142 }
144 return slotId;
145 }
146
147 // Token: 0x06003803 RID: 14339 RVA: 0x00224BB0 File Offset: 0x00222DB0
148 public static void StopTrackedSounds()
149 {
150 if (!true)
151 {
152 }
153 if (true)
154 {
155 return;
156 }
157 }
158
159 // Token: 0x06003804 RID: 14340 RVA: 0x00224BC4 File Offset: 0x00222DC4
161 {
162 if (!true)
163 {
164 }
165 if (true)
166 {
167 }
169 return soundEffect;
170 }
171
172 // Token: 0x06003805 RID: 14341 RVA: 0x00224BDC File Offset: 0x00222DDC
173 public static void StopAmbientSounds()
174 {
175 if (!true)
176 {
177 }
178 if (true)
179 {
180 return;
181 }
182 }
183
184 // Token: 0x06003806 RID: 14342 RVA: 0x00224BF0 File Offset: 0x00222DF0
186 {
187 if (!true)
188 {
189 }
190 if (true)
191 {
192 }
194 return activeSound;
195 }
196
197 // Token: 0x06003807 RID: 14343 RVA: 0x00224C08 File Offset: 0x00222E08
198 private static bool TestAudioSupport()
199 {
200 return true;
201 }
202
203 // Token: 0x04007903 RID: 30979
205
206 // Token: 0x04007904 RID: 30980
208
209 // Token: 0x04007905 RID: 30981
210 public static bool AreSoundsPaused;
211
212 // Token: 0x04007906 RID: 30982
214 private static bool <IsAudioSupported>k__BackingField;
215 }
216}
class f__AnonymousType0<< Count > j__TPar
static bool TestAudioSupport()
static SoundPlayer SoundPlayer
static SoundEffectInstance PlaySound(LegacySoundStyle type, Vector2 position)
static void Load(IServiceProvider services)
static SlotId PlayTrackedSound(SoundStyle style, Vector2 position)
static void PlaySound(int type, Vector2 position, int style=1)
static LegacySoundPlayer LegacySoundPlayer
static void StopAmbientSounds()
static ActiveSound GetActiveSound(SlotId id)
static bool< IsAudioSupported > k__BackingField
static ActiveSound FindActiveSound(SoundStyle style)
static SoundEffectInstance PlaySound(LegacySoundStyle type, int x=-1, int y=-1)
static SlotId PlayTrackedLoopedSound(SoundStyle style, Vector2 position, [Optional] ActiveSound.LoopedPlayCondition loopingCondition)
static SoundEffectInstance PlaySound(int type, int x=-1, int y=-1, int Style=1, float volumeScale=1f, float pitchOffset=0f)
static SoundEffect GetTrackableSoundByStyleId(int id)
static void StopTrackedSounds()
static SlotId PlayTrackedSound(SoundStyle style)