diff options
author | Glenn Kasten <gkasten@google.com> | 2012-11-29 13:38:14 -0800 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2012-12-03 09:57:37 -0800 |
commit | e4756fe3a387615acb63c6a05788c8db9b5786cb (patch) | |
tree | 7e0b0278f71c7667784612a83af8f43ff08bf708 /services/audioflinger/PlaybackTracks.h | |
parent | 391f1bb93d5720bfe1a025307178b3208a3ce7d7 (diff) | |
download | frameworks_av-e4756fe3a387615acb63c6a05788c8db9b5786cb.zip frameworks_av-e4756fe3a387615acb63c6a05788c8db9b5786cb.tar.gz frameworks_av-e4756fe3a387615acb63c6a05788c8db9b5786cb.tar.bz2 |
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
Diffstat (limited to 'services/audioflinger/PlaybackTracks.h')
-rw-r--r-- | services/audioflinger/PlaybackTracks.h | 7 |
1 files changed, 0 insertions, 7 deletions
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; |