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.
1
using
System
;
2
using
System.Collections.Generic
;
3
using
Cpp2IlInjected
;
4
using
UnityEngine
;
5
using
UnityEngine.Audio
;
6
7
// Token: 0x02000053 RID: 83
8
[
ResourceLocation
(
"Managers/SoundManager"
)]
9
public
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 = 0
L
;
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
44
public
SoundChannel
GetChannel
(
SoundDefinition
soundDefinition
)
45
{
46
if
(!
true
)
47
{
48
}
49
DateTime
utcNow
=
DateTime
.
UtcNow
;
50
List<SoundChannel>
channels
= this.
_channels
;
51
if
(
true
)
52
{
53
if
(channels ==
null
)
54
{
55
}
56
List<SoundChannel>
channels2
= this.
_channels
;
57
while
(!
true
)
58
{
59
}
60
if
(channels ==
null
)
61
{
62
}
63
List<SoundChannel>
channels3
= this.
_channels
;
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
71
public
void
StopAllSoundsOnChannels
(
string
channelId
)
72
{
73
if
(!
true
)
74
{
75
}
76
DateTime
utcNow
=
DateTime
.
UtcNow
;
77
List<SoundChannel>
channels
= this.
_channels
;
78
while
(!
true
)
79
{
80
}
81
if
(channels ==
null
)
82
{
83
}
84
}
85
86
// Token: 0x060001C1 RID: 449 RVA: 0x000053D0 File Offset: 0x000035D0
87
public
bool
IsPlaying
(
SoundDefinition
soundDefinition
)
88
{
89
if
(!
true
)
90
{
91
}
92
DateTime
utcNow
=
DateTime
.
UtcNow
;
93
List<SoundChannel>
channels
= this.
_channels
;
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
105
public
SoundManager
()
106
{
107
}
108
109
// Token: 0x04000130 RID: 304
110
public
AnimationCurve
VolumeFalloff
;
111
112
// Token: 0x04000131 RID: 305
113
private
GameObject
_soundRoot
;
114
115
// Token: 0x04000132 RID: 306
116
private
List<SoundChannel>
_channels
;
117
118
// Token: 0x04000133 RID: 307
119
private
static
AudioMixer
_mixer
;
120
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
Cpp2IlInjected.AnalysisFailedException
Definition
AnalysisFailedException.cs:7
Singleton
Definition
Singleton.cs:7
SoundChannel
Definition
SoundChannel.cs:6
SoundDefinition
Definition
SoundDefinition.cs:8
SoundManager.StopAllSoundsOnChannels
void StopAllSoundsOnChannels(string channelId)
Definition
SoundManager.cs:71
SoundManager._mixer
static AudioMixer _mixer
Definition
SoundManager.cs:119
SoundManager._channels
List< SoundChannel > _channels
Definition
SoundManager.cs:116
SoundManager.MasterMixer
static AudioMixer MasterMixer
Definition
SoundManager.cs:27
SoundManager.Shutdown
override void Shutdown()
Definition
SoundManager.cs:18
SoundManager.Init
override void Init()
Definition
SoundManager.cs:12
SoundManager.IsPlaying
bool IsPlaying(SoundDefinition soundDefinition)
Definition
SoundManager.cs:87
SoundManager.GetChannel
SoundChannel GetChannel(SoundDefinition soundDefinition)
Definition
SoundManager.cs:44
SoundManager.SetupChannels
void SetupChannels(int numChannels)
Definition
SoundManager.cs:38
SoundManager.VolumeFalloff
AnimationCurve VolumeFalloff
Definition
SoundManager.cs:110
SoundManager.SoundManager
SoundManager()
Definition
SoundManager.cs:105
SoundManager._soundRoot
GameObject _soundRoot
Definition
SoundManager.cs:113
SoundManager
Definition
SoundManager.cs:10
System.Collections.Generic.List._size
int _size
Definition
List.cs:394
System.Collections.Generic.List
Definition
List.cs:13
System.OutOfMemoryException
Definition
OutOfMemoryException.cs:9
UnityEngine.AnimationCurve
Definition
AnimationCurve.cs:16
UnityEngine.Audio.AudioMixer
Definition
AudioMixer.cs:12
UnityEngine.GameObject
Definition
GameObject.cs:17
UnityEngine.Resources.Load
static Object Load(string path)
Definition
Resources.cs:20
UnityEngine.Resources
Definition
Resources.cs:12
Cpp2IlInjected
Definition
AnalysisFailedException.cs:4
System.Collections.Generic
Definition
ArrayBuilder.cs:5
System.Reflection.ResourceLocation
ResourceLocation
Definition
ResourceLocation.cs:8
System.ConsoleKey.L
@ L
System
Definition
__ComObject.cs:4
UnityEngine.Audio
Definition
AudioClipPlayable.cs:7
UnityEngine
Definition
_AndroidJNIHelper.cs:6
System.DateTime.UtcNow
static DateTime UtcNow
Definition
DateTime.cs:1318
System.DateTime
Definition
DateTime.cs:13
source
SoundManager.cs
Generated by
1.10.0