Commit a9b19e4a authored by Thomas Guillem's avatar Thomas Guillem Committed by Jean-Baptiste Kempf

audiotrack: deactivate getTimestamp

It is maybe miss used, but the delay reported by this function is not coherent.
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 4ea3c307
...@@ -81,6 +81,8 @@ struct aout_sys_t { ...@@ -81,6 +81,8 @@ struct aout_sys_t {
#include "audio_output/volume.h" #include "audio_output/volume.h"
//#define AUDIOTRACK_USE_FLOAT //#define AUDIOTRACK_USE_FLOAT
// TODO: activate getTimestamp for new android versions
//#define AUDIOTRACK_USE_TIMESTAMP
vlc_module_begin () vlc_module_begin ()
set_shortname( "AudioTrack" ) set_shortname( "AudioTrack" )
...@@ -263,8 +265,10 @@ InitJNIFields( audio_output_t *p_aout ) ...@@ -263,8 +265,10 @@ InitJNIFields( audio_output_t *p_aout )
} else } else
GET_ID( GetMethodID, AudioTrack.write, "write", "([BII)I", true ); GET_ID( GetMethodID, AudioTrack.write, "write", "([BII)I", true );
#ifdef AUDIOTRACK_USE_TIMESTAMP
GET_ID( GetMethodID, AudioTrack.getTimestamp, GET_ID( GetMethodID, AudioTrack.getTimestamp,
"getTimestamp", "(Landroid/media/AudioTimestamp;)Z", false ); "getTimestamp", "(Landroid/media/AudioTimestamp;)Z", false );
#endif
GET_ID( GetMethodID, AudioTrack.getPlaybackHeadPosition, GET_ID( GetMethodID, AudioTrack.getPlaybackHeadPosition,
"getPlaybackHeadPosition", "()I", true ); "getPlaybackHeadPosition", "()I", true );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment