Summary
Creates a streaming AudioClip
from the module's audio data with the specified settings. Suitable for large files.
Please note that this method is not available on WebGL and will fall back to CreateAudioClip
instead.
Syntax
public AudioClip CreateAudioClipStream(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 streaming AudioClip . |