summaryrefslogtreecommitdiffstats
path: root/include/hardware_legacy/AudioHardwareInterface.h
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@google.com>2012-03-21 17:43:54 -0700
committerMike Lockwood <lockwood@google.com>2012-03-21 17:44:01 -0700
commit584c285492a04c711c6339720c6f9bc84895201b (patch)
tree6eed7e1b44b9b81c508716fabf4f4b446472bcb9 /include/hardware_legacy/AudioHardwareInterface.h
parent0b934ade258294987f8bde9cd338d7b635522719 (diff)
parent5b71e6fd76fe244719cb5a3f9ac24572acd9a3ca (diff)
downloadhardware_libhardware_legacy-584c285492a04c711c6339720c6f9bc84895201b.zip
hardware_libhardware_legacy-584c285492a04c711c6339720c6f9bc84895201b.tar.gz
hardware_libhardware_legacy-584c285492a04c711c6339720c6f9bc84895201b.tar.bz2
Merge commit '5b71e6f'
Add an implementation of get_next_write_timestamp. Change-Id: Ie8e19307bafdb057d06bf3c536380c5740f830a6
Diffstat (limited to 'include/hardware_legacy/AudioHardwareInterface.h')
-rw-r--r--include/hardware_legacy/AudioHardwareInterface.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/hardware_legacy/AudioHardwareInterface.h b/include/hardware_legacy/AudioHardwareInterface.h
index 31d6b99..b466000 100644
--- a/include/hardware_legacy/AudioHardwareInterface.h
+++ b/include/hardware_legacy/AudioHardwareInterface.h
@@ -109,6 +109,13 @@ public:
// return the number of audio frames written by the audio dsp to DAC since
// the output has exited standby
virtual status_t getRenderPosition(uint32_t *dspFrames) = 0;
+
+ /**
+ * get the local time at which the next write to the audio driver will be
+ * presented
+ */
+ virtual status_t getNextWriteTimestamp(int64_t *timestamp);
+
};
/**