[vlc-devel] [PATCH 4/4] audiotrack: deactivate getTimestamp
Thomas Guillem
thomas at gllm.fr
Tue Mar 3 18:05:40 CET 2015
It is maybe miss used, but the delay reported by this function is not coherent.
---
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 0d5cb81..06349ee 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 );
--
2.1.3
More information about the vlc-devel
mailing list