lovr.data.newAudioStream

Edit

Creates a new AudioStream.

stream = lovr.data.newAudioStream(capacity, format, channels, rate)

Arguments

NameTypeDefaultDescription
capacitynumber The capacity of the audio stream, in frames.
formatSampleFormat'f32' The format of the audio stream.
channelsnumber The number of channels in the audio stream.
ratenumber48000 The sample rate of the audio stream, in Hz.

Returns

NameTypeDescription
streamAudioStream The new AudioStream.

See also