Gleb Minaev
06/14/2025, 7:17 PMrunBlocking {
WAV.decode(Res.readBytes("files/mySound.wav"))!!.toSound().play()
}
Here Res.readBytes("files/mySound.wav")
is a usage of Compose Multiplatform Resources to get byte array of the sound I am playing. Despite the fact that runBlocking
finishes its work, the program still is running.