multiplatform: voice playing fix (#3046)

This commit is contained in:
Stanislav Dmitrenko authored and GitHub committed 2023-09-11 20:32:31 +01:00
1 parent 5fddf64adb
commit 4b88a2abfd
4 files changed
+9 -5

No files matched your search

@@ -2089,6 +2089,10 @@ data class CryptoFile(
val filePath: String,
val cryptoArgs: CryptoFileArgs?
) {
val isAbsolutePath: Boolean
get() = File(filePath).isAbsolute
companion object {
fun plain(f: String): CryptoFile = CryptoFile(f, null)
}
@@ -29,7 +29,7 @@ interface AudioPlayerInterface {
fun stop(fileName: String?)
fun pause(audioPlaying: MutableState<Boolean>, pro: MutableState<Int>)
fun seekTo(ms: Int, pro: MutableState<Int>, filePath: String?)
fun duration(filePath: String): Int?
fun duration(unencryptedFilePath: String): Int?
}
expect object AudioPlayer: AudioPlayerInterface