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
SoundManager.cs
Go to the documentation of this file.
1using System;
4using UnityEngine;
6
7// Token: 0x02000053 RID: 83
8[ResourceLocation("Managers/SoundManager")]
9public class SoundManager : Singleton<SoundManager>
10{
11 // Token: 0x060001BB RID: 443 RVA: 0x000052C4 File Offset: 0x000034C4
12 public override void Init()
13 {
14 this.SetupChannels(100);
15 }
16
17 // Token: 0x060001BC RID: 444 RVA: 0x000052DC File Offset: 0x000034DC
18 public override void Shutdown()
19 {
20 long num = 0L;
21 this.SetupChannels((int)num);
22 }
23
24 // Token: 0x17000072 RID: 114
25 // (get) Token: 0x060001BD RID: 445 RVA: 0x000052F4 File Offset: 0x000034F4
26 public static AudioMixer MasterMixer
27 {
28 get
29 {
30 if (Resources.Load("Audio/MasterMixer") != null)
31 {
32 return;
33 }
34 }
35 }
36
37 // Token: 0x060001BE RID: 446 RVA: 0x000021DB File Offset: 0x000003DB
38 public void SetupChannels(int numChannels)
39 {
40 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
41 }
42
43 // Token: 0x060001BF RID: 447 RVA: 0x00005310 File Offset: 0x00003510
45 {
46 if (!true)
47 {
48 }
51 if (true)
52 {
53 if (channels == null)
54 {
55 }
57 while (!true)
58 {
59 }
60 if (channels == null)
61 {
62 }
64 int priority = soundDefinition.Priority;
65 int size = channels._size;
66 }
67 throw new OutOfMemoryException();
68 }
69
70 // Token: 0x060001C0 RID: 448 RVA: 0x00005390 File Offset: 0x00003590
72 {
73 if (!true)
74 {
75 }
78 while (!true)
79 {
80 }
81 if (channels == null)
82 {
83 }
84 }
85
86 // Token: 0x060001C1 RID: 449 RVA: 0x000053D0 File Offset: 0x000035D0
88 {
89 if (!true)
90 {
91 }
94 while (!true)
95 {
96 }
97 if (channels == null)
98 {
99 }
100 bool flag;
101 return flag;
102 }
103
104 // Token: 0x060001C2 RID: 450 RVA: 0x0000540C File Offset: 0x0000360C
106 {
107 }
108
109 // Token: 0x04000130 RID: 304
111
112 // Token: 0x04000131 RID: 305
114
115 // Token: 0x04000132 RID: 306
117
118 // Token: 0x04000133 RID: 307
119 private static AudioMixer _mixer;
120}
class f__AnonymousType0<< Count > j__TPar
void StopAllSoundsOnChannels(string channelId)
static AudioMixer _mixer
List< SoundChannel > _channels
static AudioMixer MasterMixer
override void Shutdown()
override void Init()
bool IsPlaying(SoundDefinition soundDefinition)
SoundChannel GetChannel(SoundDefinition soundDefinition)
void SetupChannels(int numChannels)
AnimationCurve VolumeFalloff
GameObject _soundRoot
static Object Load(string path)
Definition Resources.cs:20
static DateTime UtcNow
Definition DateTime.cs:1318