From 696ddd7a0dbb9fdb614ac5aff409eb854477f782 Mon Sep 17 00:00:00 2001 From: Avently <7953703+avently@users.noreply.github.com> Date: Fri, 6 Sep 2024 22:10:42 +0900 Subject: [PATCH] Revert "change" This reverts commit 9693d9e85d51e5aa9f0dd054e655f2216a08674c. --- .../chat/simplex/common/platform/RecAndPlay.desktop.kt | 5 +---- 1 file changed, 1 insertion(+), 4 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 934fd4fce6..61a5df9ea6 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 @@ -10,7 +10,6 @@ import uk.co.caprica.vlcj.player.base.State import uk.co.caprica.vlcj.player.component.AudioPlayerComponent import java.io.File import java.util.* -import java.util.concurrent.Executors import kotlin.math.max actual class RecorderNative: RecorderInterface { @@ -43,9 +42,7 @@ actual object AudioPlayer: AudioPlayerInterface { RecorderInterface.stopRecording?.invoke() val current = currentlyPlaying.value if (current == null || current.fileSource != fileSource || !player.status().isPlayable || smallView != current.smallView) { - val oldPath = current?.fileSource?.filePath - println("LALAL ABSOLUTE new $absoluteFilePath, old ${oldPath} ${if (oldPath != null) File(oldPath).exists() else null}") - //stopListener() + stopListener() player.stop() runCatching { if (fileSource.cryptoArgs != null) {