[Android] libvlcjni: remove aout_get_native_sample_rate

Thomas Guillem git at videolan.org
Mon Feb 22 17:14:48 CET 2016


vlc-android | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Feb 22 17:13:42 2016 +0100| [30221d3540c85165d97b2c93d53977dd9ba80c3f] | committer: Thomas Guillem

libvlcjni: remove aout_get_native_sample_rate

> https://code.videolan.org/videolan/vlc-android/commit/30221d3540c85165d97b2c93d53977dd9ba80c3f
---

 libvlc/jni/libvlcjni.c | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/libvlc/jni/libvlcjni.c b/libvlc/jni/libvlcjni.c
index cd326f6..a72e3a7 100644
--- a/libvlc/jni/libvlcjni.c
+++ b/libvlc/jni/libvlcjni.c
@@ -467,15 +467,3 @@ void Java_org_videolan_libvlc_LibVLC_nativeSetUserAgent(JNIEnv* env,
     if (!psz_name || !psz_http)
         throw_IllegalArgumentException(env, "name or http invalid");
 }
-
-/* used by opensles module */
-int aout_get_native_sample_rate(void)
-{
-    JNIEnv *p_env;
-    if (!(p_env = jni_get_env(THREAD_NAME)))
-        return -1;
-    jclass cls = (*p_env)->FindClass (p_env, "android/media/AudioTrack");
-    jmethodID method = (*p_env)->GetStaticMethodID (p_env, cls, "getNativeOutputSampleRate", "(I)I");
-    int sample_rate = (*p_env)->CallStaticIntMethod (p_env, cls, method, 3); // AudioManager.STREAM_MUSIC
-    return sample_rate;
-}



More information about the Android mailing list