| class ClipAudio content.Public functions| Constructor Clip(float[][] data, int sampleRate) | Audio content. | | Constructor Clip(float[] data, int channels, int sampleRate) | Audio content. | | bool GetData(float[][] data, int offset) | Fills an array with sample data from the clip. Clip data overflows, and free samples are filled with the beginning of the Clip. | | bool GetData(float[] data, int offset) | Fills an array with sample data from the clip. Clip data overflows, and free samples are filled with the beginning of the Clip. | | bool GetData(float[] data, int channel, int offset) | Fills an array with a single channel's sample data from the clip. Clip data overflows, and free samples are filled with the beginning of the Clip. | | bool GetDataNonLooping(float[][] data, int offset) | Fills an array with sample data from the clip. Clip data doesn't overflow and free samples are filled with zeros. | | bool GetDataNonLooping(float[] data, int offset) | Fills an array with sample data from the clip. Clip data doesn't overflow and free samples are filled with zeros. | | bool SetData(float[][] data, int offset) | Overwrite samples in this clip. | | bool SetData(float[] data, int offset) | Overwrite samples in this clip. |
Public static functionsPublic properties| int Channels | Channel count for the clip. | | float Length | The length of the clip in seconds. | | string Name | Name of the clip. | | int SampleRate | Sampling rate of the clip. | | int Samples | The length of the clip in samples, for a single channel. |
Protected variables| float[][] data | Samples for each channel. |
See also| CavernUnity DLL.Cavern.Format.AudioReader.ReadClip() | Read the entire file, including the header, and pack it in a Clip. | | CavernUnity DLL.Cavern.Format.AudioReader.ReadClipAfterHeader() | Read the entire file and pack it in a Clip. The header should have been read before. | | CavernUnity DLL.Cavern.SpecialSources.InfiniteSource | A Source with an intro Clip and a looping part after. | | CavernUnity DLL.Cavern.SpecialSources.InfiniteSource3D | An AudioSource3D with an intro Clip and a looping part after. |
|