summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/Threads.h
diff options
context:
space:
mode:
Diffstat (limited to 'services/audioflinger/Threads.h')
-rw-r--r--services/audioflinger/Threads.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/services/audioflinger/Threads.h b/services/audioflinger/Threads.h
index 7b4fb14..4ebe615 100644
--- a/services/audioflinger/Threads.h
+++ b/services/audioflinger/Threads.h
@@ -941,6 +941,8 @@ protected:
virtual void threadLoop_exit();
virtual bool shouldStandby_l();
+ virtual void onAddNewTrack_l();
+
// volumes last sent to audio HAL with stream->set_volume()
float mLeftVolFloat;
float mRightVolFloat;
@@ -952,6 +954,9 @@ protected:
// prepareTracks_l() tells threadLoop_mix() the name of the single active track
sp<Track> mActiveTrack;
+
+ wp<Track> mPreviousTrack; // used to detect track switch
+
public:
virtual bool hasFastMixer() const { return false; }
};
@@ -971,12 +976,10 @@ protected:
virtual bool waitingAsyncCallback();
virtual bool waitingAsyncCallback_l();
- virtual void onAddNewTrack_l();
private:
size_t mPausedWriteLength; // length in bytes of write interrupted by pause
size_t mPausedBytesRemaining; // bytes still waiting in mixbuffer after resume
- wp<Track> mPreviousTrack; // used to detect track switch
};
class AsyncCallbackThread : public Thread {