Survivalcraft API 1.8.2.3 v1.8.2.3
Survivalcraft 2.4
载入中...
搜索中...
未找到
Engine.Audio.StreamingSound
类 Engine.Audio.StreamingSound 继承关系图:
Engine.Audio.StreamingSound 的协作图:

Public 成员函数

int ReadStreamingSource (byte[] buffer, int count)
 StreamingSound (StreamingSource streamingSource, float volume=1f, float pitch=1f, float pan=0f, bool isLooped=false, bool disposeOnStop=false, float bufferDuration=0.3f)
Public 成员函数 继承自 Engine.Audio.BaseSound
void Play ()
void Play (Vector3 direction)
void Pause ()
void Stop ()
virtual void Dispose ()

Public 属性

readonly float m_bufferDuration
Public 属性 继承自 Engine.Audio.BaseSound
int m_source

包函数

override void InternalPlay (Vector3 direction)
override void InternalPause ()
override void InternalStop ()
override void InternalDispose ()
包函数 继承自 Engine.Audio.BaseSound
 BaseSound ()
void InternalPlay (Vector3 direction)
void InternalPause ()
void InternalStop ()

属性

StreamingSource StreamingSource [get, set]
属性 继承自 Engine.Audio.BaseSound
SoundState State [get, set]
int ChannelsCount [get, set]
int SamplingFrequency [get, set]
float Volume [get, set]
float Pitch [get, set]
float Pan [get, set]
bool IsLooped [get, set]
bool DisposeOnStop [get, set]

Private 成员函数

void VerifyStreamingSource (StreamingSource streamingSource)
unsafe void StreamingThreadFunction ()

Private 属性

Task m_task
ManualResetEvent m_stopTaskEvent = new(false)
bool m_noMoreData

额外继承的成员函数

包属性 继承自 Engine.Audio.BaseSound
object m_lock = new()
bool m_isLooped
bool m_disposeOnStop

详细描述

在文件 StreamingSound.cs14 行定义.

构造及析构函数说明

◆ StreamingSound()

Engine.Audio.StreamingSound.StreamingSound ( StreamingSource streamingSource,
float volume = 1f,
float pitch = 1f,
float pan = 0f,
bool isLooped = false,
bool disposeOnStop = false,
float bufferDuration = 0::3f )

在文件 StreamingSound.cs54 行定义.

函数调用图:

成员函数说明

◆ InternalDispose()

override void Engine.Audio.StreamingSound.InternalDispose ( )
packagevirtual

重载 Engine.Audio.BaseSound .

在文件 StreamingSound.cs113 行定义.

◆ InternalPause()

override void Engine.Audio.StreamingSound.InternalPause ( )
package

在文件 StreamingSound.cs95 行定义.

函数调用图:

◆ InternalPlay()

override void Engine.Audio.StreamingSound.InternalPlay ( Vector3 direction)
package

在文件 StreamingSound.cs86 行定义.

函数调用图:

◆ InternalStop()

override void Engine.Audio.StreamingSound.InternalStop ( )
package

在文件 StreamingSound.cs102 行定义.

函数调用图:

◆ ReadStreamingSource()

int Engine.Audio.StreamingSound.ReadStreamingSource ( byte[] buffer,
int count )

在文件 StreamingSound.cs23 行定义.

这是这个函数的调用关系图:

◆ StreamingThreadFunction()

unsafe void Engine.Audio.StreamingSound.StreamingThreadFunction ( )
private

在文件 StreamingSound.cs129 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ VerifyStreamingSource()

void Engine.Audio.StreamingSound.VerifyStreamingSource ( StreamingSource streamingSource)
private

在文件 StreamingSound.cs42 行定义.

这是这个函数的调用关系图:

类成员变量说明

◆ m_bufferDuration

readonly float Engine.Audio.StreamingSound.m_bufferDuration

在文件 StreamingSound.cs19 行定义.

◆ m_noMoreData

bool Engine.Audio.StreamingSound.m_noMoreData
private

在文件 StreamingSound.cs18 行定义.

◆ m_stopTaskEvent

ManualResetEvent Engine.Audio.StreamingSound.m_stopTaskEvent = new(false)
private

在文件 StreamingSound.cs16 行定义.

◆ m_task

Task Engine.Audio.StreamingSound.m_task
private

在文件 StreamingSound.cs15 行定义.

属性说明

◆ StreamingSource

StreamingSource Engine.Audio.StreamingSound.StreamingSource
getset

在文件 StreamingSound.cs21 行定义.


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