From e4756fe3a387615acb63c6a05788c8db9b5786cb Mon Sep 17 00:00:00 2001 From: Glenn Kasten Date: Thu, 29 Nov 2012 13:38:14 -0800 Subject: AudioTrack::mute() is unused so remove it If ever needed again, it could be implemented on client side by forcing a track volume of 0. Change-Id: I88a9b4f675b6dca2948549414f9ec2c192d29269 --- services/audioflinger/PlaybackTracks.h | 7 ------- 1 file changed, 7 deletions(-) (limited to 'services/audioflinger/PlaybackTracks.h') diff --git a/services/audioflinger/PlaybackTracks.h b/services/audioflinger/PlaybackTracks.h index b898924..37e39a0 100644 --- a/services/audioflinger/PlaybackTracks.h +++ b/services/audioflinger/PlaybackTracks.h @@ -44,7 +44,6 @@ public: void flush(); void destroy(); - void mute(bool); int name() const { return mName; } audio_stream_type_t streamType() const { @@ -78,7 +77,6 @@ protected: virtual size_t framesReady() const; - bool isMuted() const { return mMute; } bool isPausing() const { return mState == PAUSING; } @@ -111,11 +109,6 @@ public: protected: - // written by Track::mute() called by binder thread(s), without a mutex or barrier. - // read by Track::isMuted() called by playback thread, also without a mutex or barrier. - // The lack of mutex or barrier is safe because the mute status is only used by itself. - bool mMute; - // FILLED state is used for suppressing volume ramp at begin of playing enum {FS_INVALID, FS_FILLING, FS_FILLED, FS_ACTIVE}; mutable uint8_t mFillingUpStatus; -- cgit v1.1