From 0986e7907ffc8387b04fb201e285784bcd11b9b7 Mon Sep 17 00:00:00 2001 From: Eric Laurent Date: Tue, 19 Jan 2010 17:37:09 -0800 Subject: Fix issue 2285561: New AudioFlinger and audio driver API needed for A/V sync Added getRenderPosition() API to IAudioFlinger to retreive number of audio frames written by AudioFlinger to audio HAL and by DSP to DAC. Added getRenderPosition() API to AudioHardwareInterface to retreive number of audio frames written by DSP to DAC. Exposed AudioTrack::getPosition() to AudioSink() to make it available to media player. Removed excessive log in AudioHardwareGeneric. --- libs/audioflinger/A2dpAudioInterface.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libs/audioflinger/A2dpAudioInterface.cpp') diff --git a/libs/audioflinger/A2dpAudioInterface.cpp b/libs/audioflinger/A2dpAudioInterface.cpp index c07bbfe..747d0e4 100644 --- a/libs/audioflinger/A2dpAudioInterface.cpp +++ b/libs/audioflinger/A2dpAudioInterface.cpp @@ -457,4 +457,10 @@ status_t A2dpAudioInterface::A2dpAudioStreamOut::dump(int fd, const Vector