Re-implementation of Android's MediaPlayer and audio effect classes based on OpenSL ES APIs.
I decided to develop this library to solve these frustrations.
AudioEffect
in application layerMediaPlayer
class in JavaVisualizer
provides very poor quality captured data (8 bit, monaural, 1024 samples/capture, 20 sampling/second)Visualizer
does not work properly on some devices
MediaPlayer
or ExoPlayer
for video playback)MediaPlayer
and audio effect classes
Standard*
prefixed API classes)AudioTrack
for playback. This is the most recommended MediaPlayer
because it provides more tolerance for audio glitches than OpenSLMediaPlayer
but it can use all features of OpenSLMediaPlayer
!See GitHub Pages site of this project.
build.gradle
of your projectdependencies {
compile 'com.h6ah4i.android:openslmediaplayer:0.7.5'
}
If you want to build this library from source, please refer to this article.
This library is licensed under the Apache Software License, Version 2.0, and contains some source code files delivered from product of Android Open Source Project (AOSP). See AOSP.md
for details.
Note that this library uses some third party libraries, so you also have to take care of their licenses.
See LICENSE
for full of the license text.
Copyright (C) 2014-2015 Haruki Hasegawa
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
These libraries are licensed under the Apache Software License, Version 2.0.
This library is licensed under the FFTPACK5 Software License.
This library is licensed under the BSD 3-Clause license.