diff --git a/apps/multiplatform/common/src/desktopMain/kotlin/chat/simplex/common/platform/RecAndPlay.desktop.kt b/apps/multiplatform/common/src/desktopMain/kotlin/chat/simplex/common/platform/RecAndPlay.desktop.kt index 61a5df9ea6..aae0b77133 100644 --- a/apps/multiplatform/common/src/desktopMain/kotlin/chat/simplex/common/platform/RecAndPlay.desktop.kt +++ b/apps/multiplatform/common/src/desktopMain/kotlin/chat/simplex/common/platform/RecAndPlay.desktop.kt @@ -190,7 +190,7 @@ fun MediaPlayer.seekTo(time: Int) { } fun MediaPlayer.start() { - println("LALAL START ${controls().start()}") + controls().start() } fun MediaPlayer.pause() { @@ -216,10 +216,10 @@ actual object SoundPlayer: SoundPlayerInterface { SoundPlayer::class.java.getResource("/media/ring_once.mp3")!!.openStream()!!.use { it.copyTo(tmpFile.outputStream()) } playing = true scope.launch { - //while (playing && sound) { + while (playing && sound) { AudioPlayer.play(CryptoFile.plain(tmpFile.absolutePath), mutableStateOf(true), mutableStateOf(0), mutableStateOf(0), resetOnEnd = true, smallView = false) - //delay(3500) - //} + delay(3500) + } } }