Package javazoom.jl.decoder

Examples of javazoom.jl.decoder.Header.frequency()


            aff_properties.put("mp3.vbr", new Boolean(nVBR));
            aff_properties.put("mp3.vbr.scale", new Integer(m_header.vbr_scale()));
            FrameSize = m_header.calculate_framesize();
            aff_properties.put("mp3.framesize.bytes", new Integer(FrameSize));
            if (FrameSize < 0) throw new UnsupportedAudioFileException("Invalid FrameSize : " + FrameSize);
            nFrequency = m_header.frequency();
            aff_properties.put("mp3.frequency.hz", new Integer(nFrequency));
            FrameRate = (float) ((1.0 / (m_header.ms_per_frame())) * 1000.0);
            aff_properties.put("mp3.framerate.fps", new Float(FrameRate));
            if (FrameRate < 0) throw new UnsupportedAudioFileException("Invalid FrameRate : " + FrameRate);
            // Remove heading tag length from real stream length.
View Full Code Here


              // REVIEW: Incorrect functionality.
              // the decoder should provide decoded
              // frequency and channels output as it may differ from
              // the source (e.g. when downmixing stereo to mono.)
              int channels = (header.mode()==Header.SINGLE_CHANNEL) ? 1 : 2;
              int freq = header.frequency();
              output = new WaveFileObuffer(channels, freq, destName);
              decoder.setOutputBuffer(output);
            }

            Obuffer decoderOutput = decoder.decodeFrame(header, stream);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.