mirror of
https://github.com/Myzel394/Alibi.git
synced 2025-06-18 23:05:26 +02:00
current stand
This commit is contained in:
parent
47b85e74d2
commit
8f8376cd16
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user