From 4b3a49e3a9ced6e63adab08acc5b720f8feddefa 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 --- include/media/AudioTrack.h | 10 +--------- include/media/IAudioTrack.h | 5 ----- 2 files changed, 1 insertion(+), 14 deletions(-) (limited to 'include') diff --git a/include/media/AudioTrack.h b/include/media/AudioTrack.h index d5cd28a..fe46a22 100644 --- a/include/media/AudioTrack.h +++ b/include/media/AudioTrack.h @@ -258,12 +258,6 @@ public: */ void pause(); - /* Mute or unmute this track. - * While muted, the callback, if set, is still called. - */ - void mute(bool); - bool muted() const { return mMuted; } - /* Set volume for this track, mostly used for games' sound effects * left and right volumes. Levels must be >= 0.0 and <= 1.0. * This is the older API. New applications should use setVolume(float) when possible. @@ -524,9 +518,7 @@ protected: audio_format_t mFormat; // as requested by client, not forced to 16-bit audio_stream_type_t mStreamType; - uint8_t mChannelCount; - uint8_t mMuted; - uint8_t mReserved; + uint32_t mChannelCount; audio_channel_mask_t mChannelMask; // mFrameSize is equal to mFrameSizeAF for non-PCM or 16-bit PCM data. diff --git a/include/media/IAudioTrack.h b/include/media/IAudioTrack.h index 9e0e389..144be0e 100644 --- a/include/media/IAudioTrack.h +++ b/include/media/IAudioTrack.h @@ -54,11 +54,6 @@ public: */ virtual void flush() = 0; - /* Mute or unmute this track. - * While muted, the callback, if set, is still called. - */ - virtual void mute(bool) = 0; - /* Pause a track. If set, the callback will cease being called and * obtainBuffer will return an error. Buffers that are already released * will continue to be processed, unless/until flush() is called. -- cgit v1.1