Summary
Creates an AudioClip from the module's audio data with the specified settings.
Syntax
public AudioClip CreateAudioClip(ChannelCount channelCount = Stereo, int sampleRate = 0, float from = 0, float duration = -Infinity)
Parameters
| Name |
Type |
Description |
| channelCount |
ChannelCount |
The number of audio channels (default is Stereo). |
| sampleRate |
int |
The audio sample rate (default is 0, meaning the current output sample rate). |
| from |
float |
The starting position in seconds (default is 0f). |
| duration |
float |
The duration of the audio clip in seconds (default is negative infinity, meaning the full duration). |
Return Value
| Type |
Description |
| AudioClip |
The generated AudioClip. |