diff options
author | Phil Burk <philburk@google.com> | 2015-07-06 16:24:14 -0700 |
---|---|---|
committer | Phil Burk <philburk@google.com> | 2015-07-07 16:40:00 -0700 |
commit | 90eea7631b07117e46ae8b84889a2baa3eee7aea (patch) | |
tree | e31c07b33a68919b011a031f08eb785bba0c066d /services/audioflinger/SpdifStreamOut.h | |
parent | 29b7cec9a248828d2371bc8758d819308d0e84a4 (diff) | |
download | frameworks_av-90eea7631b07117e46ae8b84889a2baa3eee7aea.zip frameworks_av-90eea7631b07117e46ae8b84889a2baa3eee7aea.tar.gz frameworks_av-90eea7631b07117e46ae8b84889a2baa3eee7aea.tar.bz2 |
AudioFlinger: reset frame position on standby
The HAL does not reset the frame position on standby().
But applications expect the frame position to be reset.
So we subtract the position at standby from the current position.
Bug: 21724210
Bug: 21930805
Change-Id: I0c4520ba1c6c06a580f45f6bafc8cf1d56969f07
Signed-off-by: Phil Burk <philburk@google.com>
Diffstat (limited to 'services/audioflinger/SpdifStreamOut.h')
-rw-r--r-- | services/audioflinger/SpdifStreamOut.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/services/audioflinger/SpdifStreamOut.h b/services/audioflinger/SpdifStreamOut.h index d81c064..a61a7bd 100644 --- a/services/audioflinger/SpdifStreamOut.h +++ b/services/audioflinger/SpdifStreamOut.h @@ -49,10 +49,6 @@ public: struct audio_config *config, const char *address); - virtual status_t getRenderPosition(uint32_t *frames); - - virtual status_t getPresentationPosition(uint64_t *frames, struct timespec *timestamp); - /** * Write audio buffer to driver. Returns number of bytes written, or a * negative status_t. If at least one frame was written successfully prior to the error, @@ -92,13 +88,8 @@ private: SpdifStreamOut * const mSpdifStreamOut; }; - int mRateMultiplier; MySPDIFEncoder mSpdifEncoder; - // Used to implement getRenderPosition() - int64_t mRenderPositionHal; - uint32_t mPreviousHalPosition32; - ssize_t writeDataBurst(const void* data, size_t bytes); ssize_t writeInternal(const void* buffer, size_t bytes); |