My Project v1
Project
载入中...
搜索中...
未找到
Game.SubsystemAudio
类 Game.SubsystemAudio 继承关系图:
Game.SubsystemAudio 的协作图:

class  Congestion
 
struct  SoundInfo
 

Public 成员函数

float CalculateListenerDistanceSquared (Vector3 p)
 
float CalculateListenerDistance (Vector3 p)
 
void Mute ()
 
void Unmute ()
 
void PlaySound (string name, float volume, float pitch, float pan, float delay)
 
void PlaySound (string name, float volume, float pitch, float pan, float delay, Vector3 direction)
 
virtual void PlaySound (string name, float volume, float pitch, Vector3 position, float minDistance, float delay)
 
virtual void PlaySound (string name, float volume, float pitch, Vector3 position, float minDistance, bool autoDelay)
 
void PlayRandomSound (string directory, float volume, float pitch, float pan, float delay)
 
virtual void PlayRandomSound (string directory, float volume, float pitch, Vector3 position, float minDistance, float delay)
 
virtual void PlayRandomSound (string directory, float volume, float pitch, Vector3 position, float minDistance, bool autoDelay)
 
Sound CreateSound (string name)
 
float CalculateVolume (float distance, float minDistance, float rolloffFactor=2f)
 
float CalculateDelay (Vector3 position)
 
float CalculateDelay (float distance)
 
void Update (float dt)
 
override void Load (ValuesDictionary valuesDictionary)
 
override void Dispose ()
 
bool UpdateCongestion (string name, float volume)
 
- Public 成员函数 继承自 Game.IUpdateable

Public 属性

SubsystemTime m_subsystemTime
 
SubsystemGameWidgets m_subsystemViews
 
Random m_random = new()
 
List< Vector3m_listenerPositions = []
 
Dictionary< string, Congestionm_congestions = []
 
double m_nextSoundTime
 
List< SoundInfom_queuedSounds = []
 
List< Sound > m_sounds = []
 
Dictionary< Sound, bool > m_mutedSounds = []
 

属性

ReadOnlyList< Vector3ListenerPositions [get]
 
UpdateOrder UpdateOrder [get]
 
- 属性 继承自 Game.IUpdateable
float FloatUpdateOrder [get]
 

成员函数说明

◆ CalculateDelay() [1/2]

float Game.SubsystemAudio.CalculateDelay ( float distance)

◆ CalculateDelay() [2/2]

float Game.SubsystemAudio.CalculateDelay ( Vector3 position)
函数调用图:
这是这个函数的调用关系图:

◆ CalculateListenerDistance()

float Game.SubsystemAudio.CalculateListenerDistance ( Vector3 p)
函数调用图:
这是这个函数的调用关系图:

◆ CalculateListenerDistanceSquared()

float Game.SubsystemAudio.CalculateListenerDistanceSquared ( Vector3 p)
这是这个函数的调用关系图:

◆ CalculateVolume()

float Game.SubsystemAudio.CalculateVolume ( float distance,
float minDistance,
float rolloffFactor = 2f )
这是这个函数的调用关系图:

◆ CreateSound()

Sound Game.SubsystemAudio.CreateSound ( string name)
函数调用图:
这是这个函数的调用关系图:

◆ Dispose()

override void Game.SubsystemAudio.Dispose ( )

◆ Load()

override void Game.SubsystemAudio.Load ( ValuesDictionary valuesDictionary)

◆ Mute()

void Game.SubsystemAudio.Mute ( )

◆ PlayRandomSound() [1/3]

void Game.SubsystemAudio.PlayRandomSound ( string directory,
float volume,
float pitch,
float pan,
float delay )
函数调用图:
这是这个函数的调用关系图:

◆ PlayRandomSound() [2/3]

virtual void Game.SubsystemAudio.PlayRandomSound ( string directory,
float volume,
float pitch,
Vector3 position,
float minDistance,
bool autoDelay )
virtual
函数调用图:

◆ PlayRandomSound() [3/3]

virtual void Game.SubsystemAudio.PlayRandomSound ( string directory,
float volume,
float pitch,
Vector3 position,
float minDistance,
float delay )
virtual
函数调用图:

◆ PlaySound() [1/4]

void Game.SubsystemAudio.PlaySound ( string name,
float volume,
float pitch,
float pan,
float delay )
这是这个函数的调用关系图:

◆ PlaySound() [2/4]

void Game.SubsystemAudio.PlaySound ( string name,
float volume,
float pitch,
float pan,
float delay,
Vector3 direction )

◆ PlaySound() [3/4]

virtual void Game.SubsystemAudio.PlaySound ( string name,
float volume,
float pitch,
Vector3 position,
float minDistance,
bool autoDelay )
virtual
函数调用图:

◆ PlaySound() [4/4]

virtual void Game.SubsystemAudio.PlaySound ( string name,
float volume,
float pitch,
Vector3 position,
float minDistance,
float delay )
virtual
函数调用图:

◆ Unmute()

void Game.SubsystemAudio.Unmute ( )

◆ Update()

void Game.SubsystemAudio.Update ( float dt)

实现了 Game.IUpdateable.

函数调用图:

◆ UpdateCongestion()

bool Game.SubsystemAudio.UpdateCongestion ( string name,
float volume )
这是这个函数的调用关系图:

类成员变量说明

◆ m_congestions

Dictionary<string, Congestion> Game.SubsystemAudio.m_congestions = []

◆ m_listenerPositions

List<Vector3> Game.SubsystemAudio.m_listenerPositions = []

◆ m_mutedSounds

Dictionary<Sound, bool> Game.SubsystemAudio.m_mutedSounds = []

◆ m_nextSoundTime

double Game.SubsystemAudio.m_nextSoundTime

◆ m_queuedSounds

List<SoundInfo> Game.SubsystemAudio.m_queuedSounds = []

◆ m_random

Random Game.SubsystemAudio.m_random = new()

◆ m_sounds

List<Sound> Game.SubsystemAudio.m_sounds = []

◆ m_subsystemTime

SubsystemTime Game.SubsystemAudio.m_subsystemTime

◆ m_subsystemViews

SubsystemGameWidgets Game.SubsystemAudio.m_subsystemViews

属性说明

◆ ListenerPositions

ReadOnlyList<Vector3> Game.SubsystemAudio.ListenerPositions
get

◆ UpdateOrder

UpdateOrder Game.SubsystemAudio.UpdateOrder
get

实现了 Game.IUpdateable.


该类的文档由以下文件生成: