Examples of ms_per_frame()


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

            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.
            int tmpLength = mLength;
            if ((streamPos > 0) && (mLength != AudioSystem.NOT_SPECIFIED) && (streamPos < mLength)) tmpLength = tmpLength - streamPos;
View Full Code Here

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

      }      
      currentFrame++;
      currentBitrate = header.bitrate_instant();
      currentFramesize = header.calculate_framesize();
      currentByte = currentByte + currentFramesize;
      currentMicrosecond = (long) (currentFrame* header.ms_per_frame()*1000.0f);
      for (int b=0;b<m_equalizer_values.length;b++)
      {
        m_equalizer.setBand(b,m_equalizer_values[b]);         
      }     
      m_decoder.setEqualizer(m_equalizer);
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.