create

fun create(sampleRate: Int, sampleSize: Int, channels: Int): AudioStream

Creates an audio stream with the specified sample rate, sample size, and number of channels. The created audio stream should be unloaded with AudioStream.unload when it is no longer needed.

Return

The created audio stream.

Parameters

sampleRate

The sample rate of the audio stream, which can be set to any positive integer value.

sampleSize

The sample size of the audio stream, which can be set to any positive integer value.

channels

The number of channels in the audio stream, which can be set to any positive integer value.