current stand

This commit is contained in:
Myzel394 2023-11-03 16:04:08 +01:00
parent 47b85e74d2
commit 8f8376cd16
No known key found for this signature in database
GPG Key ID: 79CC92F37B3E1A2B

View File

@ -57,15 +57,9 @@ class AudioRecorderService : IntervalRecorderService() {
} else {
MediaRecorder()
}.apply {
setOutputFormat(settings!!.outputFormat)
// Setting file path
/*
if (customOutputFolder == null) {
val newFilePath = "${defaultOutputFolder}/$counter.${settings!!.fileExtension}"
println("newfile path: ${newFilePath}")
setOutputFile(newFilePath)
} else {
customOutputFolder!!.createFile(
"audio/${settings!!.fileExtension}",
@ -76,6 +70,15 @@ class AudioRecorderService : IntervalRecorderService() {
setOutputFile(fileDescriptor)
}
}
*/
val newFilePath = "${defaultOutputFolder}/$counter.${settings!!.fileExtension}"
println("newfile path: ${newFilePath}")
setOutputFile(newFilePath)
println("outputformat eta: ${settings!!.outputFormat}")
setOutputFormat(settings!!.outputFormat)
// Audio Source is kinda strange, here are my experimental findings using a Pixel 7 Pro
// and Redmi Buds 3 Pro: