java - wav file to flac not working -


we trying use javaflacencoder convert wav file flac.

the call succeed , created file. file has no audio content @ all.

code simple :

val flacencoder = new flac_fileencoder() val path = paths.get(wavpath) val outputfile = file.createtempfile("talkingbirdtemp", ".flac")  val status = flacencoder.encode(path.tofile, outputfile) if (status != status.full_encode) {   outputfile.delete   throw new runtimeexception("flac conversion failed with: " + status) } 

the wav file sample rate 22050. generated file has no valid audio signal @ all.

anything we've done wrong?

are sure you're writing code in java?


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -