summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2012-11-29 13:38:14 -0800
committerGlenn Kasten <gkasten@google.com>2012-12-03 09:57:37 -0800
commit4b3a49e3a9ced6e63adab08acc5b720f8feddefa (patch)
tree4189f95a16953fa8218544fa5ceedfc7bee94e1d /include
parent9862e8f3ba69c46efbafdc8438bd88848a9d55da (diff)
downloadframeworks_av-4b3a49e3a9ced6e63adab08acc5b720f8feddefa.zip
frameworks_av-4b3a49e3a9ced6e63adab08acc5b720f8feddefa.tar.gz
frameworks_av-4b3a49e3a9ced6e63adab08acc5b720f8feddefa.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 'include')
-rw-r--r--include/media/AudioTrack.h10
-rw-r--r--include/media/IAudioTrack.h5
2 files changed, 1 insertions, 14 deletions
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.