forked from MattRix/UnityDecompiled
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAudioMixer.cs
More file actions
46 lines (46 loc) · 1.38 KB
/
Copy pathAudioMixer.cs
File metadata and controls
46 lines (46 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
using System;
using System.Runtime.CompilerServices;
namespace UnityEngine.Audio
{
public class AudioMixer : UnityEngine.Object
{
public extern AudioMixerGroup outputAudioMixerGroup
{
[WrapperlessIcall]
[MethodImpl(MethodImplOptions.InternalCall)]
get;
[WrapperlessIcall]
[MethodImpl(MethodImplOptions.InternalCall)]
set;
}
internal AudioMixer()
{
}
[WrapperlessIcall]
[MethodImpl(MethodImplOptions.InternalCall)]
public extern AudioMixerGroup[] FindMatchingGroups(string subPath);
[WrapperlessIcall]
[MethodImpl(MethodImplOptions.InternalCall)]
public extern AudioMixerSnapshot FindSnapshot(string name);
private void TransitionToSnapshot(AudioMixerSnapshot snapshot, float timeToReach)
{
if (snapshot == null || snapshot.audioMixer != this)
{
return;
}
snapshot.TransitionTo(timeToReach);
}
[WrapperlessIcall]
[MethodImpl(MethodImplOptions.InternalCall)]
public extern void TransitionToSnapshots(AudioMixerSnapshot[] snapshots, float[] weights, float timeToReach);
[WrapperlessIcall]
[MethodImpl(MethodImplOptions.InternalCall)]
public extern bool SetFloat(string name, float value);
[WrapperlessIcall]
[MethodImpl(MethodImplOptions.InternalCall)]
public extern bool ClearFloat(string name);
[WrapperlessIcall]
[MethodImpl(MethodImplOptions.InternalCall)]
public extern bool GetFloat(string name, out float value);
}
}