Java 类com.google.android.exoplayer2.decoder.SimpleDecoder 实例源码

项目:transistor    文件:SimpleDecoderAudioRendererTest.java   
@Before
public void setUp() throws Exception {
  MockitoAnnotations.initMocks(this);
  audioRenderer = new SimpleDecoderAudioRenderer(null, null, null, false, mockAudioSink) {
    @Override
    protected int supportsFormatInternal(DrmSessionManager<ExoMediaCrypto> drmSessionManager,
        Format format) {
      return FORMAT_HANDLED;
    }

    @Override
    protected SimpleDecoder<DecoderInputBuffer, ? extends SimpleOutputBuffer,
        ? extends AudioDecoderException> createDecoder(Format format, ExoMediaCrypto mediaCrypto)
        throws AudioDecoderException {
      return new FakeDecoder();
    }
  };
}
项目:Exoplayer2Radio    文件:SimpleDecoderAudioRenderer.java   
/**
 * Creates a decoder for the given format.
 *
 * @param format The format for which a decoder is required.
 * @param mediaCrypto The {@link ExoMediaCrypto} object required for decoding encrypted content.
 *     Maybe null and can be ignored if decoder does not handle encrypted content.
 * @return The decoder.
 * @throws AudioDecoderException If an error occurred creating a suitable decoder.
 */
protected abstract SimpleDecoder<DecoderInputBuffer, ? extends SimpleOutputBuffer,
    ? extends AudioDecoderException> createDecoder(Format format, ExoMediaCrypto mediaCrypto)
    throws AudioDecoderException;
项目:K-Sonic    文件:SimpleDecoderAudioRenderer.java   
/**
 * Creates a decoder for the given format.
 *
 * @param format The format for which a decoder is required.
 * @param mediaCrypto The {@link ExoMediaCrypto} object required for decoding encrypted content.
 *     Maybe null and can be ignored if decoder does not handle encrypted content.
 * @return The decoder.
 * @throws AudioDecoderException If an error occurred creating a suitable decoder.
 */
protected abstract SimpleDecoder<DecoderInputBuffer, ? extends SimpleOutputBuffer,
    ? extends AudioDecoderException> createDecoder(Format format, ExoMediaCrypto mediaCrypto)
    throws AudioDecoderException;
项目:videoPickPlayer    文件:SimpleDecoderAudioRenderer.java   
/**
 * Creates a decoder for the given format.
 *
 * @param format The format for which a decoder is required.
 * @return The decoder.
 * @throws AudioDecoderException If an error occurred creating a suitable decoder.
 */
protected abstract SimpleDecoder<DecoderInputBuffer, ? extends SimpleOutputBuffer,
    ? extends AudioDecoderException> createDecoder(Format format) throws AudioDecoderException;
项目:transistor    文件:SimpleDecoderAudioRenderer.java   
/**
 * Creates a decoder for the given format.
 *
 * @param format The format for which a decoder is required.
 * @param mediaCrypto The {@link ExoMediaCrypto} object required for decoding encrypted content.
 *     Maybe null and can be ignored if decoder does not handle encrypted content.
 * @return The decoder.
 * @throws AudioDecoderException If an error occurred creating a suitable decoder.
 */
protected abstract SimpleDecoder<DecoderInputBuffer, ? extends SimpleOutputBuffer,
    ? extends AudioDecoderException> createDecoder(Format format, ExoMediaCrypto mediaCrypto)
    throws AudioDecoderException;