commit 06/10/2025

This commit is contained in:
2025-10-06 11:06:32 +07:00
parent cf69c72f3c
commit 13a45b706b
5 changed files with 116 additions and 70 deletions

View File

@@ -141,7 +141,7 @@ class AudioPlayer (var samplingrate: Int) {
* @param callback A BiConsumer that accepts a Boolean indicating success or failure and a String message.
*/
fun WavWriter(sources: List<AudioFileInfo>, target: String, callback: BiConsumer<Boolean, String>) {
if (sources.isEmpty() || !ValidFile(target)) {
if (sources.isEmpty()) {
callback.accept(false, " Invalid sources")
return
}