]> git.sesse.net Git - vlc/commitdiff
audiotrack: deactivate getTimestamp
authorThomas Guillem <thomas@gllm.fr>
Tue, 3 Mar 2015 17:05:40 +0000 (18:05 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 4 Mar 2015 09:03:02 +0000 (10:03 +0100)
It is maybe miss used, but the delay reported by this function is not coherent.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/audio_output/audiotrack.c

index ce7f6db62e231ab2ffe7559b7fe32bde9aa66051..e21e31ea43d643fa91852396851a5a01bd0bbdad 100644 (file)
@@ -81,6 +81,8 @@ struct aout_sys_t {
 #include "audio_output/volume.h"
 
 //#define AUDIOTRACK_USE_FLOAT
+// TODO: activate getTimestamp for new android versions
+//#define AUDIOTRACK_USE_TIMESTAMP
 
 vlc_module_begin ()
     set_shortname( "AudioTrack" )
@@ -263,8 +265,10 @@ InitJNIFields( audio_output_t *p_aout )
     } else
         GET_ID( GetMethodID, AudioTrack.write, "write", "([BII)I", true );
 
+#ifdef AUDIOTRACK_USE_TIMESTAMP
     GET_ID( GetMethodID, AudioTrack.getTimestamp,
             "getTimestamp", "(Landroid/media/AudioTimestamp;)Z", false );
+#endif
     GET_ID( GetMethodID, AudioTrack.getPlaybackHeadPosition,
             "getPlaybackHeadPosition", "()I", true );