Audio Stream
Represents an audio stream in raylib, which is a dynamic audio data structure that can be used for streaming audio data. An audio stream should be unloaded when it is no longer needed.
Constructors
Properties
Functions
Attaches a processor function to the audio stream, which will be called with the audio data before it is played. The processor function can be used to modify the audio data in real-time, such as applying effects or filters. The processor function should take a byte array as input, which will contain the audio data to be processed. The size of the byte array will be equal to the number of frames requested by the audio stream multiplied by the sample size and number of channels of the audio stream.
Detaches the processor function from the audio stream, which will stop calling the processor function with the audio data before it is played. After calling this function, the audio stream will no longer call the processor function and will play the audio data without any modifications.
Sets a callback function to be called when the audio stream needs more data. The callback function should take a byte array as input, which will be filled with the audio data to be streamed. The size of the byte array will be equal to the number of frames requested by the audio stream multiplied by the sample size and number of channels of the audio stream.