C# Class UnityEngine.AudioSource

Inheritance: Behaviour
ファイルを表示 Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Private Properties

Property Type Description
GetCustomCurve AnimationCurve
GetOutputData float[]
GetOutputDataHelper void
GetSpatializerFloat bool
GetSpectrumData float[]
GetSpectrumDataHelper void
INTERNAL_CALL_Pause void
INTERNAL_CALL_UnPause void
Play void
Play void
PlayClipAtPoint void
PlayDelayed void
PlayOneShot void
PlayOneShot void
PlayScheduled void
SetCustomCurve void
SetScheduledEndTime void
SetScheduledStartTime void
SetSpatializerFloat bool
Stop void

Public Methods

Method Description
GetOutputData ( float samples, int channel ) : void

Provides a block of the currently playing source's output data.

GetSpectrumData ( float samples, int channel, FFTWindow window ) : void

Provides a block of the currently playing audio source's spectrum data.

Pause ( ) : void

Pauses playing the clip.

PlayClipAtPoint ( AudioClip clip, Vector3 position, [ volume ) : void

Plays an AudioClip at a given position in world space.

UnPause ( ) : void

Unpause the paused playback of this AudioSource.

Private Methods

Method Description
GetCustomCurve ( AudioSourceCurveType type ) : AnimationCurve
GetOutputData ( int numSamples, int channel ) : float[]
GetOutputDataHelper ( float samples, int channel ) : void
GetSpatializerFloat ( int index, float &value ) : bool
GetSpectrumData ( int numSamples, int channel, FFTWindow window ) : float[]
GetSpectrumDataHelper ( float samples, int channel, FFTWindow window ) : void
INTERNAL_CALL_Pause ( AudioSource self ) : void
INTERNAL_CALL_UnPause ( AudioSource self ) : void
Play ( ) : void
Play ( [ delay ) : void
PlayClipAtPoint ( AudioClip clip, Vector3 position ) : void
PlayDelayed ( float delay ) : void
PlayOneShot ( AudioClip clip ) : void
PlayOneShot ( AudioClip clip, [ volumeScale ) : void
PlayScheduled ( double time ) : void
SetCustomCurve ( AudioSourceCurveType type, AnimationCurve curve ) : void
SetScheduledEndTime ( double time ) : void
SetScheduledStartTime ( double time ) : void
SetSpatializerFloat ( int index, float value ) : bool
Stop ( ) : void

Method Details

GetOutputData() public method

Provides a block of the currently playing source's output data.

public GetOutputData ( float samples, int channel ) : void
samples float The array to populate with audio samples. Its length must be a power of 2.
channel int The channel to sample from.
return void

GetSpectrumData() public method

Provides a block of the currently playing audio source's spectrum data.

public GetSpectrumData ( float samples, int channel, FFTWindow window ) : void
samples float The array to populate with audio samples. Its length must be a power of 2.
channel int The channel to sample from.
window FFTWindow The FFTWindow type to use when sampling.
return void

Pause() public method

Pauses playing the clip.

public Pause ( ) : void
return void

PlayClipAtPoint() public static method

Plays an AudioClip at a given position in world space.

public static PlayClipAtPoint ( AudioClip clip, Vector3 position, [ volume ) : void
clip AudioClip Audio data to play.
position Vector3 Position in world space from which sound originates.
volume [ Playback volume.
return void

UnPause() public method

Unpause the paused playback of this AudioSource.

public UnPause ( ) : void
return void