mirror of
https://github.com/Myzel394/Alibi.git
synced 2025-06-19 07:15:25 +02:00
chore: Cleanup
This commit is contained in:
parent
e94bfded6c
commit
7722127796
@ -63,9 +63,6 @@ data class AudioRecorderExporter(
|
|||||||
it.path
|
it.path
|
||||||
}
|
}
|
||||||
val filePath = FFmpegKitConfig.getSafParameter(context, uri, "rw")
|
val filePath = FFmpegKitConfig.getSafParameter(context, uri, "rw")
|
||||||
println("!!!!!!!!!!!!!!!!!!1")
|
|
||||||
println(getFolder(context).listFiles()?.map { it.name })
|
|
||||||
println(filePath)
|
|
||||||
val fileName = recording.recordingStart
|
val fileName = recording.recordingStart
|
||||||
.format(DateTimeFormatter.ISO_DATE_TIME)
|
.format(DateTimeFormatter.ISO_DATE_TIME)
|
||||||
.toString()
|
.toString()
|
||||||
@ -73,7 +70,7 @@ data class AudioRecorderExporter(
|
|||||||
.replace(".", "_")
|
.replace(".", "_")
|
||||||
val outputFile = FFmpegKitConfig.getSafParameterForWrite(
|
val outputFile = FFmpegKitConfig.getSafParameterForWrite(
|
||||||
context,
|
context,
|
||||||
(folder.uri.path + "/$fileName.aac").toUri()
|
folder.createFile("audio/aac", "${fileName}.aac")!!.uri,
|
||||||
)
|
)
|
||||||
|
|
||||||
val command = "-protocol_whitelist saf,concat,content,file,subfile" +
|
val command = "-protocol_whitelist saf,concat,content,file,subfile" +
|
||||||
@ -86,10 +83,6 @@ data class AudioRecorderExporter(
|
|||||||
" -metadata max_duration='${recording.maxDuration}'" +
|
" -metadata max_duration='${recording.maxDuration}'" +
|
||||||
" $outputFile"
|
" $outputFile"
|
||||||
|
|
||||||
println("--------------------")
|
|
||||||
println(command)
|
|
||||||
println(outputFile)
|
|
||||||
|
|
||||||
val session = FFmpegKit.execute(command)
|
val session = FFmpegKit.execute(command)
|
||||||
|
|
||||||
if (!ReturnCode.isSuccess(session.returnCode)) {
|
if (!ReturnCode.isSuccess(session.returnCode)) {
|
||||||
@ -134,9 +127,6 @@ data class AudioRecorderExporter(
|
|||||||
return@forEach
|
return@forEach
|
||||||
}
|
}
|
||||||
|
|
||||||
println(
|
|
||||||
"symlinking ${folder.uri}/${it.name} to ${destinationFolder.absolutePath}/${it.name}"
|
|
||||||
)
|
|
||||||
|
|
||||||
Os.symlink(
|
Os.symlink(
|
||||||
"${folder.uri}/${it.name}",
|
"${folder.uri}/${it.name}",
|
||||||
|
@ -81,7 +81,6 @@ class AudioRecorderService : IntervalRecorderService() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
println("outputformat eta: ${settings!!.outputFormat}")
|
|
||||||
setOutputFormat(settings!!.outputFormat)
|
setOutputFormat(settings!!.outputFormat)
|
||||||
|
|
||||||
setAudioEncoder(settings!!.encoder)
|
setAudioEncoder(settings!!.encoder)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user