AudioDriver
Interface for implementing an audio driver on the platform.
Methods
fun setReader(reader: AudioStreamReader): Unit
Sets the callback function that the audio driver calls to load data.
Calling this method repeatedly overwrites the previously saved callback function.
Parameters
fun setAvailableCallback(callback: AvailableCallback): Unit
Parameters
fun available(): Boolean
Whether the audio device is currently available to the application.
Returns
fun play(): Unit
Launches the playing of the sound stream.
Once this method is called, a callback function must be called if it is set in the set_reader method.
If the callback function returns 0 written bytes, the playing of the sound stream can be stopped.
Returns