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
SoundPlayer.cs
Go to the documentation of this file.
1
using
System
;
2
using
Microsoft.Xna.Framework
;
3
using
ReLogic.Utilities
;
4
5
namespace
Terraria.Audio
6
{
7
// Token: 0x0200068D RID: 1677
8
public
class
SoundPlayer
9
{
10
// Token: 0x0600380B RID: 14347 RVA: 0x00224C5C File Offset: 0x00222E5C
11
public
SlotId
Play
(
SoundStyle
style,
Vector2
position)
12
{
13
if
(!
true
)
14
{
15
}
16
if
(style !=
null
&& !
true
)
17
{
18
Vector2
screenPosition =
Main
.
screenPosition
;
19
int
screenWidth =
Main
.
screenWidth
;
20
int
screenHeight =
Main
.
screenHeight
;
21
}
22
SlotVector<ActiveSound>
trackedSounds
= this.
_trackedSounds
;
23
SlotId
slotId
;
24
return
slotId
;
25
}
26
27
// Token: 0x0600380C RID: 14348 RVA: 0x00224C9C File Offset: 0x00222E9C
28
public
SlotId
PlayLooped
(
SoundStyle
style,
Vector2
position,
ActiveSound
.
LoopedPlayCondition
loopingCondition
)
29
{
30
if
(!
true
)
31
{
32
}
33
if
(style !=
null
&& !
true
)
34
{
35
Vector2
screenPosition =
Main
.
screenPosition
;
36
int
screenWidth =
Main
.
screenWidth
;
37
int
screenHeight =
Main
.
screenHeight
;
38
}
39
SlotVector<ActiveSound>
trackedSounds
= this.
_trackedSounds
;
40
SlotId
slotId
;
41
return
slotId
;
42
}
43
44
// Token: 0x0600380D RID: 14349 RVA: 0x00224CDC File Offset: 0x00222EDC
45
public
void
Reload
()
46
{
47
this.
StopAll
();
48
}
49
50
// Token: 0x0600380E RID: 14350 RVA: 0x00224CF0 File Offset: 0x00222EF0
51
public
SlotId
Play
(
SoundStyle
style)
52
{
53
while
(((!
true
|| style ==
null
) && style ==
null
) ||
true
)
54
{
55
}
56
SlotVector<ActiveSound>
trackedSounds
= this.
_trackedSounds
;
57
SlotId
slotId
;
58
return
slotId
;
59
}
60
61
// Token: 0x0600380F RID: 14351 RVA: 0x00224D14 File Offset: 0x00222F14
62
public
ActiveSound
GetActiveSound
(
SlotId
id
)
63
{
64
bool
flag = this.
_trackedSounds
.Has(
id
);
65
return
this.
_trackedSounds
[id];
66
}
67
68
// Token: 0x06003810 RID: 14352 RVA: 0x00224D3C File Offset: 0x00222F3C
69
public
void
PauseAll
()
70
{
71
SlotVector<ActiveSound>
trackedSounds
= this.
_trackedSounds
;
72
}
73
74
// Token: 0x06003811 RID: 14353 RVA: 0x00224D80 File Offset: 0x00222F80
75
public
void
ResumeAll
()
76
{
77
SlotVector<ActiveSound>
trackedSounds
= this.
_trackedSounds
;
78
}
79
80
// Token: 0x06003812 RID: 14354 RVA: 0x00224DC4 File Offset: 0x00222FC4
81
public
void
StopAll
()
82
{
83
SlotVector<ActiveSound>
trackedSounds
= this.
_trackedSounds
;
84
}
85
86
// Token: 0x06003813 RID: 14355 RVA: 0x00224E14 File Offset: 0x00223014
87
public
void
Update
()
88
{
89
SlotVector<ActiveSound>
trackedSounds
= this.
_trackedSounds
;
90
}
91
92
// Token: 0x06003814 RID: 14356 RVA: 0x00224E74 File Offset: 0x00223074
93
public
ActiveSound
FindActiveSound
(
SoundStyle
style)
94
{
95
SlotVector<ActiveSound>
trackedSounds
= this.
_trackedSounds
;
96
long
num;
97
if
(
trackedSounds
==
null
)
98
{
99
num = 0
L
;
100
if
(
trackedSounds
!=
null
)
101
{
102
}
103
}
104
if
(num == 0
L
)
105
{
106
}
107
throw
new
OutOfMemoryException
();
108
}
109
110
// Token: 0x06003815 RID: 14357 RVA: 0x00224EBC File Offset: 0x002230BC
111
public
SoundPlayer
()
112
{
113
}
114
115
// Token: 0x04007908 RID: 30984
116
private
readonly
SlotVector<ActiveSound>
_trackedSounds
;
117
}
118
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
ReLogic.Utilities.SlotVector
Definition
SlotVector.cs:11
System.OutOfMemoryException
Definition
OutOfMemoryException.cs:9
Terraria.Audio.ActiveSound.LoopedPlayCondition
Definition
ActiveSound.cs:212
Terraria.Audio.ActiveSound
Definition
ActiveSound.cs:11
Terraria.Audio.SoundPlayer.PauseAll
void PauseAll()
Definition
SoundPlayer.cs:69
Terraria.Audio.SoundPlayer.FindActiveSound
ActiveSound FindActiveSound(SoundStyle style)
Definition
SoundPlayer.cs:93
Terraria.Audio.SoundPlayer.Update
void Update()
Definition
SoundPlayer.cs:87
Terraria.Audio.SoundPlayer.SoundPlayer
SoundPlayer()
Definition
SoundPlayer.cs:111
Terraria.Audio.SoundPlayer.Play
SlotId Play(SoundStyle style, Vector2 position)
Definition
SoundPlayer.cs:11
Terraria.Audio.SoundPlayer.Play
SlotId Play(SoundStyle style)
Definition
SoundPlayer.cs:51
Terraria.Audio.SoundPlayer.Reload
void Reload()
Definition
SoundPlayer.cs:45
Terraria.Audio.SoundPlayer.PlayLooped
SlotId PlayLooped(SoundStyle style, Vector2 position, ActiveSound.LoopedPlayCondition loopingCondition)
Definition
SoundPlayer.cs:28
Terraria.Audio.SoundPlayer.ResumeAll
void ResumeAll()
Definition
SoundPlayer.cs:75
Terraria.Audio.SoundPlayer.StopAll
void StopAll()
Definition
SoundPlayer.cs:81
Terraria.Audio.SoundPlayer._trackedSounds
readonly SlotVector< ActiveSound > _trackedSounds
Definition
SoundPlayer.cs:116
Terraria.Audio.SoundPlayer.GetActiveSound
ActiveSound GetActiveSound(SlotId id)
Definition
SoundPlayer.cs:62
Terraria.Audio.SoundPlayer
Definition
SoundPlayer.cs:9
Terraria.Audio.SoundStyle
Definition
SoundStyle.cs:9
Terraria.Main.screenPosition
static Microsoft.Xna.Framework.Vector2 screenPosition
Definition
Main.cs:1973
Terraria.Main.screenHeight
static int screenHeight
Definition
Main.cs:2015
Terraria.Main.screenWidth
static int screenWidth
Definition
Main.cs:2001
Terraria.Main
Definition
Main.cs:67
Microsoft.Xna.Framework
Definition
AudioChannels.cs:4
ReLogic.Utilities
Definition
AttributeUtilities.cs:6
System.ConsoleKey.L
@ L
System
Definition
__ComObject.cs:4
Terraria.Audio
Definition
ActiveSound.cs:8
Microsoft.Xna.Framework.Vector2
Definition
Vector2.cs:10
ReLogic.Utilities.SlotId
Definition
SlotId.cs:8
source
Terraria
Audio
SoundPlayer.cs
Generated by
1.10.0