createPlaybackSession

abstract suspend fun createPlaybackSession(requestedDevice: AudioDevice.Output? = null): AudioPlaybackSession

Creates a playback session with the specified output device.

Parameters

requestedDevice

The requested output device to play to (not all platforms support this).