summaryrefslogtreecommitdiff
path: root/libs/audioflinger/A2dpAudioInterface.cpp
diff options
context:
space:
mode:
author Eric Laurent <elaurent@google.com> 2010-01-19 17:37:09 -0800
committer Eric Laurent <elaurent@google.com> 2010-01-26 18:40:39 -0800
commite9ed2721f4e1f06494e8c90684af9a2490d44a29 (patch)
tree83f4a6843ce5c9aac355d22f6ce810c33d95b0c3 /libs/audioflinger/A2dpAudioInterface.cpp
parent26ae5b2f6644bb7514aafaead8f6af7e925c1b0f (diff)
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.
Diffstat (limited to 'libs/audioflinger/A2dpAudioInterface.cpp')
-rw-r--r--libs/audioflinger/A2dpAudioInterface.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/audioflinger/A2dpAudioInterface.cpp b/libs/audioflinger/A2dpAudioInterface.cpp
index c07bbfe771..747d0e4ce3 100644
--- a/libs/audioflinger/A2dpAudioInterface.cpp
+++ b/libs/audioflinger/A2dpAudioInterface.cpp
@@ -457,4 +457,10 @@ status_t A2dpAudioInterface::A2dpAudioStreamOut::dump(int fd, const Vector<Strin
return NO_ERROR;
}
+status_t A2dpAudioInterface::A2dpAudioStreamOut::getRenderPosition(uint32_t *driverFrames)
+{
+ //TODO: enable when supported by driver
+ return INVALID_OPERATION;
+}
+
}; // namespace android