Package javaFlacEncoder

Examples of javaFlacEncoder.StreamConfiguration


     * @param outputFile Output FLAC file
     */
    public void convertWaveToFlac(File inputFile, File outputFile) {


        StreamConfiguration streamConfiguration = new StreamConfiguration();
        streamConfiguration.setSampleRate(8000);
        streamConfiguration.setBitsPerSample(16);
        streamConfiguration.setChannelCount(1);


        try {
            AudioInputStream audioInputStream = AudioSystem.getAudioInputStream(inputFile);
            AudioFormat format = audioInputStream.getFormat();
View Full Code Here


     * @param outputFile Output FLAC file
     */
    public void convertWaveToFlac(File inputFile, File outputFile) {


        StreamConfiguration streamConfiguration = new StreamConfiguration();
        streamConfiguration.setSampleRate(8000);
        streamConfiguration.setBitsPerSample(16);
        streamConfiguration.setChannelCount(1);


        try {
            AudioInputStream audioInputStream = AudioSystem.getAudioInputStream(inputFile);
            AudioFormat format = audioInputStream.getFormat();
View Full Code Here

     * @param outputFile Output FLAC file
     */
    public void convertWaveToFlac(File inputFile, File outputFile) {


        StreamConfiguration streamConfiguration = new StreamConfiguration();
        streamConfiguration.setSampleRate(8000);
        streamConfiguration.setBitsPerSample(16);
        streamConfiguration.setChannelCount(1);


        try {
            AudioInputStream audioInputStream = AudioSystem.getAudioInputStream(inputFile);
            AudioFormat format = audioInputStream.getFormat();
View Full Code Here

     * @param outputFile Output FLAC file
     */
    public void convertWaveToFlac(File inputFile, File outputFile) {


        StreamConfiguration streamConfiguration = new StreamConfiguration();
        streamConfiguration.setSampleRate(8000);
        streamConfiguration.setBitsPerSample(16);
        streamConfiguration.setChannelCount(1);


        try {
            AudioInputStream audioInputStream = AudioSystem.getAudioInputStream(inputFile);
            AudioFormat format = audioInputStream.getFormat();
View Full Code Here

    @Override
    public boolean open(File outputFile, AudioFormat fmt, Configuration options) {
        try {
            this.fmt = fmt;
            encoder = new javaFlacEncoder.FLACEncoder();
            StreamConfiguration streamConfiguration = new StreamConfiguration();
            streamConfiguration.setBitsPerSample(fmt.getSampleSizeInBits());
            streamConfiguration.setChannelCount(fmt.getChannels());
            streamConfiguration.setSampleRate((int) fmt.getSampleRate());
            encoder.setStreamConfiguration(streamConfiguration);

            EncodingConfiguration encodingConfiguration = new EncodingConfiguration();
            encoder.setEncodingConfiguration(encodingConfiguration);
View Full Code Here

TOP

Related Classes of javaFlacEncoder.StreamConfiguration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.