summaryrefslogtreecommitdiffstats
path: root/include/hardware_legacy/AudioHardwareInterface.h
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2010-02-19 07:39:21 -0800
committerEric Laurent <elaurent@google.com>2010-02-26 03:04:31 -0800
commit4eeca2472712d86063715b05345fcff1e0e6fa73 (patch)
tree31ff6b9d96e26b325ae4b525fe1fe10e1e66dc4a /include/hardware_legacy/AudioHardwareInterface.h
parentcabb0103bdcf68f3edcf597f5799741c2d10ee73 (diff)
downloadhardware_libhardware_legacy-4eeca2472712d86063715b05345fcff1e0e6fa73.zip
hardware_libhardware_legacy-4eeca2472712d86063715b05345fcff1e0e6fa73.tar.gz
hardware_libhardware_legacy-4eeca2472712d86063715b05345fcff1e0e6fa73.tar.bz2
Issue 2071329: audio track is shorter than video track for video capture on sholes
Add API to retrieve number of frames dropped by audio input kernel driver. Submitted on behalf of Masaki Sato <masaki.sato@motorola.com>
Diffstat (limited to 'include/hardware_legacy/AudioHardwareInterface.h')
-rw-r--r--include/hardware_legacy/AudioHardwareInterface.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/hardware_legacy/AudioHardwareInterface.h b/include/hardware_legacy/AudioHardwareInterface.h
index bc9b4b2..ba65d9a 100644
--- a/include/hardware_legacy/AudioHardwareInterface.h
+++ b/include/hardware_legacy/AudioHardwareInterface.h
@@ -157,6 +157,14 @@ public:
// The audio flinger will put the input in standby and then change the parameter value.
virtual status_t setParameters(const String8& keyValuePairs) = 0;
virtual String8 getParameters(const String8& keys) = 0;
+
+
+ // Return the amount of input frames lost in the audio driver since the last call of this function.
+ // Audio driver is expected to reset the value to 0 and restart counting upon returning the current value by this function call.
+ // Such loss typically occurs when the user space process is blocked longer than the capacity of audio driver buffers.
+ // Unit: the number of input audio frames
+ virtual unsigned int getInputFramesLost() const = 0;
+
};
/**