C# Class GAudio.GATAudioClipExtensions

Helper methods to extract audio data from AudioClips
Datei anzeigen Open project: gregzo/G-Audio

Public Methods

Method Description
ExtractChannels ( this clip, GATDataAllocationMode mode ) : GAudio.GATData[]

Performs the same operation as ToGATData, but splits interleaved channels in seperate GATData instances.

ToGATData ( this clip, GATDataAllocationMode mode ) : GATData

Extracts the audio data from an AudioClip and sets it in a GATData object. Memory is allocated according to the specified GATDataAllocationMode.

Method Details

ExtractChannels() public static method

Performs the same operation as ToGATData, but splits interleaved channels in seperate GATData instances.
public static ExtractChannels ( this clip, GATDataAllocationMode mode ) : GAudio.GATData[]
clip this
mode GATDataAllocationMode
return GAudio.GATData[]

ToGATData() public static method

Extracts the audio data from an AudioClip and sets it in a GATData object. Memory is allocated according to the specified GATDataAllocationMode.
public static ToGATData ( this clip, GATDataAllocationMode mode ) : GATData
clip this
mode GATDataAllocationMode
return GATData