C# Class UnityEngine.AudioClip

A container for audio data.

Inheritance: UnityEngine.Object
Datei anzeigen Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Private Properties

Property Type Description
Construct_Internal AudioClip
Create AudioClip
Create AudioClip
Create AudioClip
GetData bool
Init_Internal void
InvokePCMReaderCallback_Internal void
InvokePCMSetPositionCallback_Internal void
LoadAudioData bool
SetData bool
UnloadAudioData bool

Public Methods

Method Description
Create ( string name, int lengthSamples, int channels, int frequency, bool stream ) : AudioClip

Creates a user AudioClip with a name and with the given length in samples, channels and frequency.

Create ( string name, int lengthSamples, int channels, int frequency, bool stream, PCMReaderCallback pcmreadercallback ) : AudioClip
Create ( string name, int lengthSamples, int channels, int frequency, bool stream, PCMReaderCallback pcmreadercallback, PCMSetPositionCallback pcmsetpositioncallback ) : AudioClip

Private Methods

Method Description
Construct_Internal ( ) : AudioClip
Create ( string name, int lengthSamples, int channels, int frequency, bool _3D, bool stream ) : AudioClip
Create ( string name, int lengthSamples, int channels, int frequency, bool _3D, bool stream, PCMReaderCallback pcmreadercallback ) : AudioClip
Create ( string name, int lengthSamples, int channels, int frequency, bool _3D, bool stream, PCMReaderCallback pcmreadercallback, PCMSetPositionCallback pcmsetpositioncallback ) : AudioClip
GetData ( float data, int offsetSamples ) : bool
Init_Internal ( string name, int lengthSamples, int channels, int frequency, bool stream ) : void
InvokePCMReaderCallback_Internal ( float data ) : void
InvokePCMSetPositionCallback_Internal ( int position ) : void
LoadAudioData ( ) : bool
SetData ( float data, int offsetSamples ) : bool
UnloadAudioData ( ) : bool

Method Details

Create() public static method

Creates a user AudioClip with a name and with the given length in samples, channels and frequency.

public static Create ( string name, int lengthSamples, int channels, int frequency, bool stream ) : AudioClip
name string Name of clip.
lengthSamples int Number of sample frames.
channels int Number of channels per frame.
frequency int Sample frequency of clip.
stream bool True if clip is streamed, that is if the pcmreadercallback generates data on the fly.
return AudioClip

Create() public static method

public static Create ( string name, int lengthSamples, int channels, int frequency, bool stream, PCMReaderCallback pcmreadercallback ) : AudioClip
name string
lengthSamples int
channels int
frequency int
stream bool
pcmreadercallback PCMReaderCallback
return AudioClip

Create() public static method

public static Create ( string name, int lengthSamples, int channels, int frequency, bool stream, PCMReaderCallback pcmreadercallback, PCMSetPositionCallback pcmsetpositioncallback ) : AudioClip
name string
lengthSamples int
channels int
frequency int
stream bool
pcmreadercallback PCMReaderCallback
pcmsetpositioncallback PCMSetPositionCallback
return AudioClip