summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/Threads.h
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2014-09-29 13:06:46 -0700
committerEric Laurent <elaurent@google.com>2014-09-29 17:39:39 -0700
commite659ef420dae0caae84ab78f9df8952acb9ad3a0 (patch)
tree9b21158041ed871365f939fc37034858328ef115 /services/audioflinger/Threads.h
parentdc2e6ddc933e40632e79a866d9ece870db1a975e (diff)
downloadframeworks_av-e659ef420dae0caae84ab78f9df8952acb9ad3a0.zip
frameworks_av-e659ef420dae0caae84ab78f9df8952acb9ad3a0.tar.gz
frameworks_av-e659ef420dae0caae84ab78f9df8952acb9ad3a0.tar.bz2
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
Diffstat (limited to 'services/audioflinger/Threads.h')
-rw-r--r--services/audioflinger/Threads.h5
1 files changed, 2 insertions, 3 deletions
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>& 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