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

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

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

Header.parseVBR介绍

[英]Parse frame to extract optionnal VBR frame.
[中]解析帧以提取可选VBR帧。

代码示例

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

/**
 * Reads and parses the next frame from the input source.
 * @return the Header describing details of the frame read, or null if the end of the stream has been reached.
 */
public Header readFrame () throws BitstreamException {
  Header result = null;
  try {
    result = readNextFrame();
    // E.B, Parse VBR (if any) first frame.
    if (firstframe == true) {
      result.parseVBR(frame_bytes);
      firstframe = false;
    }
  } catch (BitstreamException ex) {
    if (ex.getErrorCode() == INVALIDFRAME)
      // Try to skip this frame.
      // System.out.println("INVALIDFRAME");
      try {
        closeFrame();
        result = readNextFrame();
      } catch (BitstreamException e) {
        if (e.getErrorCode() != STREAM_EOF) // wrap original exception so stack trace is maintained.
          throw newBitstreamException(e.getErrorCode(), e);
      }
    else if (ex.getErrorCode() != STREAM_EOF) // wrap original exception so stack trace is maintained.
      throw newBitstreamException(ex.getErrorCode(), ex);
  }
  return result;
}

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

result.parseVBR(frame_bytes);
firstframe = false;

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

result.parseVBR(frame_bytes);
firstframe = false;

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

result.parseVBR(frame_bytes);
firstframe = false;

相关文章