C# Class kOS.Sound.SoundMaker

Inheritance: UnityEngine.MonoBehaviour, ISoundMaker
Afficher le fichier Open project: KSP-KOS/KOS Class Usage Examples

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
Awake ( ) : void
Destroy ( ) : void

Method Details

AddGenericVoices() public méthode

public AddGenericVoices ( int howMany ) : void
howMany int
Résultat void

AttachTo() public méthode

public AttachTo ( SharedObjects sharedObj ) : void
sharedObj SharedObjects
Résultat void

BeginFileSound() public méthode

public BeginFileSound ( string name, float volume = 1f ) : bool
name string
volume float
Résultat bool

GetVoice() public méthode

public GetVoice ( int num ) : IVoice
num int
Résultat IVoice

GetWaveName() public méthode

public GetWaveName ( int voiceNum ) : string
voiceNum int
Résultat string

LoadFileSound() public méthode

Load a fixed sound effect from a file.
public LoadFileSound ( string name, string url ) : void
name string
url string
Résultat void

LoadProceduralSound() public méthode

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
Résultat void

SetWave() public méthode

public SetWave ( int num, string waveName ) : bool
num int
waveName string
Résultat bool

StopAllVoices() public méthode

public StopAllVoices ( ) : void
Résultat void