multiplatform: voice playing fix (#3046)

This commit is contained in:
Stanislav Dmitrenko
2023-09-11 22:32:31 +03:00
committed by GitHub
parent 5fddf64adb
commit 4b88a2abfd
4 changed files with 9 additions and 5 deletions
@@ -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