streamConfiguration.setBitsPerSample(fmt.getSampleSizeInBits());
streamConfiguration.setChannelCount(fmt.getChannels());
streamConfiguration.setSampleRate((int) fmt.getSampleRate());
encoder.setStreamConfiguration(streamConfiguration);
EncodingConfiguration encodingConfiguration = new EncodingConfiguration();
encoder.setEncodingConfiguration(encodingConfiguration);
outputStream = new FLACFileOutputStream(outputFile.getAbsolutePath());
encoder.setOutputStream(outputStream);
encoder.openFLACStream();