C# Class LeanAudio, hugula

Inheritance: object
Mostra file Open project: tenvick/hugula Class Usage Examples

Public Properties

Property Type Description
MIN_FREQEUNCY_PERIOD float
PROCESSING_ITERATIONS_MAX int
generatedWaveDistances float[]
generatedWaveDistancesCount int

Public Methods

Method Description
createAudio ( AnimationCurve volume, AnimationCurve frequency, LeanAudioOptions, options = null ) : AudioClip
createAudioStream ( AnimationCurve volume, AnimationCurve frequency, LeanAudioOptions, options = null ) : LeanAudioStream,
generateAudioFromCurve ( AnimationCurve curve, int frequencyRate = 44100 ) : AudioClip
options ( ) : LeanAudioOptions,
play ( AudioClip audio ) : AudioSource
play ( AudioClip audio, Vector3 pos ) : AudioSource
play ( AudioClip audio, Vector3 pos, float volume ) : AudioSource
play ( AudioClip audio, float volume ) : AudioSource
playClipAt ( AudioClip clip, Vector3 pos ) : AudioSource
printOutAudioClip ( AudioClip audioClip, AnimationCurve &curve, float scaleX = 1f ) : void

Private Methods

Method Description
OnAudioSetPosition ( int newPosition ) : void
createAudioFromWave ( int waveLength, LeanAudioOptions, options ) : AudioClip
createAudioWave ( AnimationCurve volume, AnimationCurve frequency, LeanAudioOptions, options ) : int

Method Details

createAudio() public static method

public static createAudio ( AnimationCurve volume, AnimationCurve frequency, LeanAudioOptions, options = null ) : AudioClip
volume UnityEngine.AnimationCurve
frequency UnityEngine.AnimationCurve
options LeanAudioOptions,
return UnityEngine.AudioClip

createAudioStream() public static method

public static createAudioStream ( AnimationCurve volume, AnimationCurve frequency, LeanAudioOptions, options = null ) : LeanAudioStream,
volume UnityEngine.AnimationCurve
frequency UnityEngine.AnimationCurve
options LeanAudioOptions,
return LeanAudioStream,

generateAudioFromCurve() public static method

public static generateAudioFromCurve ( AnimationCurve curve, int frequencyRate = 44100 ) : AudioClip
curve UnityEngine.AnimationCurve
frequencyRate int
return UnityEngine.AudioClip

options() public static method

public static options ( ) : LeanAudioOptions,
return LeanAudioOptions,

play() public static method

public static play ( AudioClip audio ) : AudioSource
audio UnityEngine.AudioClip
return UnityEngine.AudioSource

play() public static method

public static play ( AudioClip audio, Vector3 pos ) : AudioSource
audio UnityEngine.AudioClip
pos Vector3
return UnityEngine.AudioSource

play() public static method

public static play ( AudioClip audio, Vector3 pos, float volume ) : AudioSource
audio UnityEngine.AudioClip
pos Vector3
volume float
return UnityEngine.AudioSource

play() public static method

public static play ( AudioClip audio, float volume ) : AudioSource
audio UnityEngine.AudioClip
volume float
return UnityEngine.AudioSource

playClipAt() public static method

public static playClipAt ( AudioClip clip, Vector3 pos ) : AudioSource
clip UnityEngine.AudioClip
pos Vector3
return UnityEngine.AudioSource

printOutAudioClip() public static method

public static printOutAudioClip ( AudioClip audioClip, AnimationCurve &curve, float scaleX = 1f ) : void
audioClip UnityEngine.AudioClip
curve UnityEngine.AnimationCurve
scaleX float
return void

Property Details

MIN_FREQEUNCY_PERIOD public_oe static_oe property

public static float MIN_FREQEUNCY_PERIOD
return float

PROCESSING_ITERATIONS_MAX public_oe static_oe property

public static int PROCESSING_ITERATIONS_MAX
return int

generatedWaveDistances public_oe static_oe property

public static float[] generatedWaveDistances
return float[]

generatedWaveDistancesCount public_oe static_oe property

public static int generatedWaveDistancesCount
return int