Companion

Functions

Link copied to clipboard
fun fromFile(path: Path, fileSystem: FileSystem = SystemFileSystem): Sound

Creates a new Sound by reading the path.

Link copied to clipboard
fun fromSource(source: Source, format: Sound.Format): Sound

Creates a new Sound by reading source in format.

Link copied to clipboard
suspend fun fromUrl(client: HttpClient, url: String): Sound

Creates a new sound by fetching url using client.

Link copied to clipboard
fun raw(data: ByteArray, format: Sound.Format): Sound

Creates a new Sound from data in format.