From e659ef420dae0caae84ab78f9df8952acb9ad3a0 Mon Sep 17 00:00:00 2001 From: Eric Laurent Date: Mon, 29 Sep 2014 13:06:46 -0700 Subject: audioflinger: forward flush to direct output streams Track flush should be forwarded to the audio HAL when playing on a direct output stream. Bug: 17704953. Change-Id: Iafc94327fe9aebf1d4eaa97b76c6767b7ac5babe --- services/audioflinger/Threads.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'services/audioflinger/Threads.h') diff --git a/services/audioflinger/Threads.h b/services/audioflinger/Threads.h index fd025b5..7af5264 100644 --- a/services/audioflinger/Threads.h +++ b/services/audioflinger/Threads.h @@ -894,6 +894,7 @@ public: virtual bool checkForNewParameter_l(const String8& keyValuePair, status_t& status); + virtual void flushHw_l(); protected: virtual int getTrackName_l(audio_channel_mask_t channelMask, @@ -929,6 +930,7 @@ public: OffloadThread(const sp& audioFlinger, AudioStreamOut* output, audio_io_handle_t id, uint32_t device); virtual ~OffloadThread() {}; + virtual void flushHw_l(); protected: // threadLoop snippets @@ -941,9 +943,6 @@ protected: virtual void onAddNewTrack_l(); private: - void flushHw_l(); - -private: bool mHwPaused; bool mFlushPending; size_t mPausedWriteLength; // length in bytes of write interrupted by pause -- cgit v1.1