lovr.data.newAudioStream
EditCreates a new AudioStream.
stream = lovr.data.newAudioStream(capacity, format, channels, rate)Arguments
| Name | Type | Default | Description |
| capacity | number | The capacity of the audio stream, in frames. | |
| format | SampleFormat | 'f32' | The format of the audio stream. |
| channels | number | The number of channels in the audio stream. | |
| rate | number | 48000 | The sample rate of the audio stream, in Hz. |
Returns
| Name | Type | Description |
| stream | AudioStream | The new AudioStream. |