C# 클래스 kOS.Sound.SoundMaker

상속: UnityEngine.MonoBehaviour, ISoundMaker
파일 보기 프로젝트 열기: KSP-KOS/KOS 1 사용 예제들

공개 메소드들

메소드 설명
AddGenericVoices ( int howMany ) : void
AttachTo ( SharedObjects sharedObj ) : void
BeginFileSound ( string name, float volume = 1f ) : bool
GetVoice ( int num ) : IVoice
GetWaveName ( int voiceNum ) : string
LoadFileSound ( string name, string url ) : void

Load a fixed sound effect from a file.

LoadProceduralSound ( string name, ProceduralSoundWave waveGen ) : void

Load a sound wave sample that was built procedurally in memory. These kinds of samples can be stretched later to play at different notes.

SetWave ( int num, string waveName ) : bool
StopAllVoices ( ) : void

비공개 메소드들

메소드 설명
Awake ( ) : void
Destroy ( ) : void

메소드 상세

AddGenericVoices() 공개 메소드

public AddGenericVoices ( int howMany ) : void
howMany int
리턴 void

AttachTo() 공개 메소드

public AttachTo ( SharedObjects sharedObj ) : void
sharedObj SharedObjects
리턴 void

BeginFileSound() 공개 메소드

public BeginFileSound ( string name, float volume = 1f ) : bool
name string
volume float
리턴 bool

GetVoice() 공개 메소드

public GetVoice ( int num ) : IVoice
num int
리턴 IVoice

GetWaveName() 공개 메소드

public GetWaveName ( int voiceNum ) : string
voiceNum int
리턴 string

LoadFileSound() 공개 메소드

Load a fixed sound effect from a file.
public LoadFileSound ( string name, string url ) : void
name string
url string
리턴 void

LoadProceduralSound() 공개 메소드

Load a sound wave sample that was built procedurally in memory. These kinds of samples can be stretched later to play at different notes.
public LoadProceduralSound ( string name, ProceduralSoundWave waveGen ) : void
name string
waveGen ProceduralSoundWave
리턴 void

SetWave() 공개 메소드

public SetWave ( int num, string waveName ) : bool
num int
waveName string
리턴 bool

StopAllVoices() 공개 메소드

public StopAllVoices ( ) : void
리턴 void