javazoom.jl.decoder.Header.ms_per_frame()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(3.3k)|赞(0)|评价(0)|浏览(161)

本文整理了Java中javazoom.jl.decoder.Header.ms_per_frame()方法的一些代码示例,展示了Header.ms_per_frame()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Header.ms_per_frame()方法的具体详情如下:
包路径:javazoom.jl.decoder.Header
类名称:Header
方法名:ms_per_frame

Header.ms_per_frame介绍

[英]Returns ms/frame.
[中]返回毫秒/帧。

代码示例

代码示例来源:origin: com.badlogicgames.jlayer/jlayer

/**
 * Return Bitrate.
 * @return bitrate in bps and average bitrate for VBR header
 */
public int bitrate () {
  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];
}

代码示例来源:origin: javazoom/jlayer

/**
 * Return Bitrate.
 * @return bitrate in bps and average bitrate for VBR header
 */
public int bitrate()
{
  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];
}

代码示例来源:origin: com.googlecode.soundlibs/jlayer

/**
 * Return Bitrate.
 * @return bitrate in bps and average bitrate for VBR header
 */
public int bitrate()
{
  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];
}

代码示例来源:origin: tulskiy/musique

/**
 * Return Bitrate.
 *
 * @return bitrate in bps and average bitrate for VBR header
 */
public int bitrate() {
  if (h_vbr) {
    return ((int) ((h_vbr_bytes * 8) / (ms_per_frame() * h_vbr_frames))) * 1000;
  } else {
    return bitrates[h_version][h_layer - 1][h_bitrate_index];
  }
}

代码示例来源:origin: pdudits/soundlibs

/**
 * Return Bitrate.
 * @return bitrate in bps and average bitrate for VBR header
 */
public int bitrate()
{
  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];
}

代码示例来源:origin: com.badlogicgames.jlayer/jlayer

/**
 * Returns total ms.
 * @param streamsize
 * @return total milliseconds
 */
public float total_ms (int streamsize) // E.B
{
  return max_number_of_frames(streamsize) * ms_per_frame();
}

代码示例来源:origin: tulskiy/musique

/**
 * Returns total ms.
 *
 * @param streamsize
 * @return total milliseconds
 */
public float total_ms(int streamsize) // E.B
{
  return (max_number_of_frames(streamsize) * ms_per_frame());
}

代码示例来源:origin: javazoom/jlayer

/**
 * Returns total ms.
 * @param streamsize
 * @return total milliseconds
 */
public float total_ms(int streamsize) // E.B
{
  return(max_number_of_frames(streamsize) * ms_per_frame());
}

代码示例来源:origin: com.googlecode.soundlibs/jlayer

/**
 * Returns total ms.
 * @param streamsize
 * @return total milliseconds
 */
public float total_ms(int streamsize) // E.B
{
  return(max_number_of_frames(streamsize) * ms_per_frame());
}

代码示例来源:origin: pdudits/soundlibs

/**
 * Returns total ms.
 * @param streamsize
 * @return total milliseconds
 */
public float total_ms(int streamsize) // E.B
{
  return(max_number_of_frames(streamsize) * ms_per_frame());
}

代码示例来源:origin: stackoverflow.com

done = true;
} else {
  totalMs += frameHeader.ms_per_frame();

代码示例来源:origin: stackoverflow.com

done = true;
} else {
 totalMs += frameHeader.ms_per_frame();

代码示例来源:origin: ddf/Minim

FrameRate = (float)((1.0 / (m_header.ms_per_frame())) * 1000.0);
aff_properties.put("mp3.framerate.fps", new Float(FrameRate));
if (FrameRate < 0)

代码示例来源:origin: stackoverflow.com

done = true;
} else {
  total_ms += frameHeader.ms_per_frame();

代码示例来源:origin: tulskiy/musique

trackData.setChannels(channels);
oldBitrate = trackData.getBitrate();
samplesPerFrame = (int) (header.ms_per_frame() * header.frequency() / 1000);
audioFormat = new AudioFormat(sampleRate, 16, channels, true, false);

相关文章