本文整理汇总了Java中com.coremedia.iso.boxes.sampleentry.AudioSampleEntry.getChannelCount方法的典型用法代码示例。如果您正苦于以下问题:Java AudioSampleEntry.getChannelCount方法的具体用法?Java AudioSampleEntry.getChannelCount怎么用?Java AudioSampleEntry.getChannelCount使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.coremedia.iso.boxes.sampleentry.AudioSampleEntry
的用法示例。
在下文中一共展示了AudioSampleEntry.getChannelCount方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getAacAudioQuality
import com.coremedia.iso.boxes.sampleentry.AudioSampleEntry; //导入方法依赖的package包/类
private AudioQuality getAacAudioQuality(Track track, AudioSampleEntry ase) {
AudioQuality l = new AudioQuality();
final ESDescriptorBox esDescriptorBox = ase.getBoxes(ESDescriptorBox.class).get(0);
final AudioSpecificConfig audioSpecificConfig = esDescriptorBox.getEsDescriptor().getDecoderConfigDescriptor().getAudioSpecificInfo();
if (audioSpecificConfig.getSbrPresentFlag() == 1) {
l.fourCC = "AACH";
} else if (audioSpecificConfig.getPsPresentFlag() == 1) {
l.fourCC = "AACP"; //I'm not sure if that's what MS considers as AAC+ - because actually AAC+ and AAC-HE should be the same...
} else {
l.fourCC = "AACL";
}
l.bitrate = getBitrate(track);
l.audioTag = 255;
l.samplingRate = ase.getSampleRate();
l.channels = ase.getChannelCount();
l.bitPerSample = ase.getSampleSize();
l.packetSize = 4;
l.codecPrivateData = getAudioCodecPrivateData(audioSpecificConfig);
//Index="0" Bitrate="103000" AudioTag="255" SamplingRate="44100" Channels="2" BitsPerSample="16" packetSize="4" CodecPrivateData=""
return l;
}