Companion
object Companion
Functions
Link copied to clipboard
suspend fun create(source: String, config: SonixPlayerConfig = SonixPlayerConfig.DEFAULT, audioSession: AudioMode = AudioMode.PLAYBACK): SonixPlayer
Create player from source with configuration.
Link copied to clipboard
fun createFromPcm(data: ByteArray, sampleRate: Int = 44100, channels: Int = 1, config: SonixPlayerConfig = SonixPlayerConfig.DEFAULT, audioSession: AudioMode = AudioMode.PLAYBACK): SonixPlayer
Create player from raw PCM data with configuration.