Logo Search packages:      
Sourcecode: libjlayer-java version File versions  Download package

int javazoom::jl::decoder::Header::bitrate (  )  [inline]

Return Bitrate.

Returns:
bitrate in bps and average bitrate for VBR header

Definition at line 659 of file Header.java.

References ms_per_frame().

Referenced by bitrate_string().

      {
            if (h_vbr == true)
            {
                  return ((int) ((h_vbr_bytes * 8) / (ms_per_frame() * h_vbr_frames)))*1000;          
            }
            else return bitrates[h_version][h_layer - 1][h_bitrate_index];
      }


Generated by  Doxygen 1.6.0   Back to index