Created
December 11, 2019 15:14
-
-
Save seanghay/e4418c242ae4534a164e253bc20a6c8b to your computer and use it in GitHub Desktop.
MediaCodec
This file contains hidden or 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
| class AudioDecoder { | |
| private val decoder: MediaCodec | |
| private val mimeType = "audio/mpeg" // Mp3 MimeType | |
| init { | |
| decoder = MediaCodec.createDecoderByType(mimeType) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment