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

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

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

Header.checksum_ok介绍

[英]Returns Checksum flag. Compares computed checksum with stream checksum.
[中]返回校验和标志。将计算的校验和与流校验和进行比较。

代码示例

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

public void decodeFrame() {
  num_subbands = header.number_of_subbands();
  subbands = new Subband[32];
  mode = header.mode();
  createSubbands();
  readAllocation();
  readScaleFactorSelection();
  if ((crc != null) || header.checksum_ok()) {
    readScaleFactors();
    readSampleData();
  }
}

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

public void decodeFrame () throws DecoderException {
  num_subbands = header.number_of_subbands();
  subbands = new Subband[32];
  mode = header.mode();
  createSubbands();
  readAllocation();
  readScaleFactorSelection();
  if (crc != null || header.checksum_ok()) {
    readScaleFactors();
    readSampleData();
  }
}

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

public void decodeFrame() throws DecoderException
{
  
  num_subbands = header.number_of_subbands();
  subbands = new Subband[32];
  mode = header.mode();
  
  createSubbands();
  
  readAllocation();
  readScaleFactorSelection();
  
  if ((crc != null) || header.checksum_ok())
   {
    readScaleFactors();
    
    readSampleData();            
  }
}

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

public void decodeFrame() throws DecoderException
{
  
  num_subbands = header.number_of_subbands();
  subbands = new Subband[32];
  mode = header.mode();
  
  createSubbands();
  
  readAllocation();
  readScaleFactorSelection();
  
  if ((crc != null) || header.checksum_ok())
   {
    readScaleFactors();
    
    readSampleData();            
  }
}

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

public void decodeFrame() throws DecoderException
{
  
  num_subbands = header.number_of_subbands();
  subbands = new Subband[32];
  mode = header.mode();
  
  createSubbands();
  
  readAllocation();
  readScaleFactorSelection();
  
  if ((crc != null) || header.checksum_ok())
   {
    readScaleFactors();
    
    readSampleData();            
  }
}

相关文章