vlc | branch: master | Thomas Guillem <tho...@gllm.fr> | Tue Mar  3 18:05:40 
2015 +0100| [a9b19e4ac55d8493e17650ce50ecefa5808950a7] | committer: 
Jean-Baptiste Kempf

audiotrack: deactivate getTimestamp

It is maybe miss used, but the delay reported by this function is not coherent.

Signed-off-by: Jean-Baptiste Kempf <j...@videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a9b19e4ac55d8493e17650ce50ecefa5808950a7
---

 modules/audio_output/audiotrack.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/audio_output/audiotrack.c 
b/modules/audio_output/audiotrack.c
index ce7f6db..e21e31e 100644
--- a/modules/audio_output/audiotrack.c
+++ b/modules/audio_output/audiotrack.c
@@ -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 );
 

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to