com.google.android.exoplayer2.audio.TeeAudioProcessor Java Examples
The following examples show how to use
com.google.android.exoplayer2.audio.TeeAudioProcessor.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ExoplayerAudioRenderer.java From lbry-android with MIT License | 6 votes |
@Override protected void buildAudioRenderers( Context context, int extensionRendererMode, MediaCodecSelector mediaCodecSelector, @Nullable DrmSessionManager<FrameworkMediaCrypto> drmSessionManager, boolean playClearSamplesWithoutKeys, boolean enableDecoderFallback, AudioProcessor[] audioProcessors, Handler eventHandler, AudioRendererEventListener eventListener, ArrayList<Renderer> out) { AudioProcessor[] audioProcessorList = { new TeeAudioProcessor(audioBufferSink) }; super.buildAudioRenderers( context, extensionRendererMode, mediaCodecSelector, drmSessionManager, playClearSamplesWithoutKeys, enableDecoderFallback, audioProcessorList, eventHandler, eventListener, out); }
Example #2
Source File: ExoplayerAudioRenderer.java From lbry-android with MIT License | 4 votes |
public ExoplayerAudioRenderer(Context context, TeeAudioProcessor.AudioBufferSink audioBufferSink) { super(context); this.audioBufferSink = audioBufferSink; }
Example #3
Source File: VideoPlayer.java From Telegram-FOSS with GNU General Public License v2.0 | 4 votes |
@Override protected void buildAudioRenderers(Context context, int extensionRendererMode, MediaCodecSelector mediaCodecSelector, @Nullable DrmSessionManager<FrameworkMediaCrypto> drmSessionManager, boolean playClearSamplesWithoutKeys, boolean enableDecoderFallback, AudioProcessor[] audioProcessors, Handler eventHandler, AudioRendererEventListener eventListener, ArrayList<Renderer> out) { AudioProcessor audioProcessor = new TeeAudioProcessor(new VisualizerBufferSink()); super.buildAudioRenderers(context, extensionRendererMode, mediaCodecSelector, drmSessionManager, playClearSamplesWithoutKeys, enableDecoderFallback, new AudioProcessor[]{audioProcessor}, eventHandler, eventListener, out); }
Example #4
Source File: VideoPlayer.java From Telegram with GNU General Public License v2.0 | 4 votes |
@Override protected void buildAudioRenderers(Context context, int extensionRendererMode, MediaCodecSelector mediaCodecSelector, @Nullable DrmSessionManager<FrameworkMediaCrypto> drmSessionManager, boolean playClearSamplesWithoutKeys, boolean enableDecoderFallback, AudioProcessor[] audioProcessors, Handler eventHandler, AudioRendererEventListener eventListener, ArrayList<Renderer> out) { AudioProcessor audioProcessor = new TeeAudioProcessor(new VisualizerBufferSink()); super.buildAudioRenderers(context, extensionRendererMode, mediaCodecSelector, drmSessionManager, playClearSamplesWithoutKeys, enableDecoderFallback, new AudioProcessor[]{audioProcessor}, eventHandler, eventListener, out); }