use of com.google.android.exoplayer2.decoder.DecoderCounters in project ExoPlayer by google.
the class DebugTextViewHelper method getAudioString.
/**
* Returns a string containing audio debugging information.
*/
protected String getAudioString() {
Format format = player.getAudioFormat();
DecoderCounters decoderCounters = player.getAudioDecoderCounters();
if (format == null || decoderCounters == null) {
return "";
}
return "\n" + format.sampleMimeType + "(id:" + format.id + " hz:" + format.sampleRate + " ch:" + format.channelCount + getDecoderCountersBufferCountString(decoderCounters) + ")";
}
Aggregations