Created
November 29, 2019 13:06
-
-
Save dzolnai/de2dfbd6ed0ee2523744d7973ecb48e2 to your computer and use it in GitHub Desktop.
Creating an ExoPlayer with your own audioprocessor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private val fftAudioProcessor = FFTAudioProcessor() | |
val renderersFactory = object : DefaultRenderersFactory(this) { | |
override fun buildAudioProcessors(): Array<AudioProcessor> { | |
val processors = super.buildAudioProcessors() | |
return processors + fftAudioProcessor | |
} | |
} | |
player = ExoPlayerFactory.newSimpleInstance(this, renderersFactory, DefaultTrackSelector()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment