From 072d547c4827821f29c3d820c7b74f1247087532 Mon Sep 17 00:00:00 2001 From: Avently <7953703+avently@users.noreply.github.com> Date: Fri, 6 Sep 2024 21:48:53 +0900 Subject: [PATCH] only once --- .../kotlin/chat/simplex/common/platform/RecAndPlay.desktop.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 f68d5cd710..4681d272e2 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 @@ -193,7 +193,7 @@ fun MediaPlayer.seekTo(time: Int) { } fun MediaPlayer.start() { - controls().start() + println("LALAL START ${controls().start()}") } fun MediaPlayer.pause() { @@ -221,7 +221,7 @@ actual object SoundPlayer: SoundPlayerInterface { scope.launch { while (playing && sound) { AudioPlayer.play(CryptoFile.plain(tmpFile.absolutePath), mutableStateOf(true), mutableStateOf(0), mutableStateOf(0), resetOnEnd = true, smallView = false) - delay(3500) + //delay(3500) } } }