Java 类com.google.android.exoplayer2.audio.DtsUtil 实例源码

项目:Exoplayer2Radio    文件:DtsReader.java   
/**
 * Parses the sample header.
 */
private void parseHeader() {
  byte[] frameData = headerScratchBytes.data;
  if (format == null) {
    format = DtsUtil.parseDtsFormat(frameData, formatId, language, null);
    output.format(format);
  }
  sampleSize = DtsUtil.getDtsFrameSize(frameData);
  // In this class a sample is an access unit (frame in DTS), but the format's sample rate
  // specifies the number of PCM audio samples per second.
  sampleDurationUs = (int) (C.MICROS_PER_SECOND
      * DtsUtil.parseDtsAudioSampleCount(frameData) / format.sampleRate);
}
项目:K-Sonic    文件:DtsReader.java   
/**
 * Parses the sample header.
 */
private void parseHeader() {
  byte[] frameData = headerScratchBytes.data;
  if (format == null) {
    format = DtsUtil.parseDtsFormat(frameData, formatId, language, null);
    output.format(format);
  }
  sampleSize = DtsUtil.getDtsFrameSize(frameData);
  // In this class a sample is an access unit (frame in DTS), but the format's sample rate
  // specifies the number of PCM audio samples per second.
  sampleDurationUs = (int) (C.MICROS_PER_SECOND
      * DtsUtil.parseDtsAudioSampleCount(frameData) / format.sampleRate);
}
项目:videoPickPlayer    文件:DtsReader.java   
/**
 * Parses the sample header.
 */
private void parseHeader() {
  byte[] frameData = headerScratchBytes.data;
  if (format == null) {
    format = DtsUtil.parseDtsFormat(frameData, null, language, null);
    output.format(format);
  }
  sampleSize = DtsUtil.getDtsFrameSize(frameData);
  // In this class a sample is an access unit (frame in DTS), but the format's sample rate
  // specifies the number of PCM audio samples per second.
  sampleDurationUs = (int) (C.MICROS_PER_SECOND
      * DtsUtil.parseDtsAudioSampleCount(frameData) / format.sampleRate);
}
项目:transistor    文件:DtsReader.java   
/**
 * Parses the sample header.
 */
private void parseHeader() {
  byte[] frameData = headerScratchBytes.data;
  if (format == null) {
    format = DtsUtil.parseDtsFormat(frameData, formatId, language, null);
    output.format(format);
  }
  sampleSize = DtsUtil.getDtsFrameSize(frameData);
  // In this class a sample is an access unit (frame in DTS), but the format's sample rate
  // specifies the number of PCM audio samples per second.
  sampleDurationUs = (int) (C.MICROS_PER_SECOND
      * DtsUtil.parseDtsAudioSampleCount(frameData) / format.sampleRate);
}