diff options
author | Glenn Kasten <gkasten@google.com> | 2012-02-27 16:21:04 -0800 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2012-11-05 15:12:51 -0800 |
commit | b1c0993b215c5c3eebd1c6bafc22bba23d57a70b (patch) | |
tree | 7b2d2eb6d08c5460fc896e083983ef6e65b5db45 /include | |
parent | ad4e408b8ea397caadbfee85e1e39515e7e08104 (diff) | |
download | frameworks_av-b1c0993b215c5c3eebd1c6bafc22bba23d57a70b.zip frameworks_av-b1c0993b215c5c3eebd1c6bafc22bba23d57a70b.tar.gz frameworks_av-b1c0993b215c5c3eebd1c6bafc22bba23d57a70b.tar.bz2 |
Add all-channel AudioTrack::setVolume() API
Add combined channel APIs setVolume to AudioTrack,
and remove obsolete getVolume.
Change-Id: I0c87bfdbff4f4292259fa33e65f67badbafd270b
Diffstat (limited to 'include')
-rw-r--r-- | include/media/AudioTrack.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/media/AudioTrack.h b/include/media/AudioTrack.h index 3d45503..6d19092 100644 --- a/include/media/AudioTrack.h +++ b/include/media/AudioTrack.h @@ -285,9 +285,14 @@ public: /* 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. */ status_t setVolume(float left, float right); - void getVolume(float* left, float* right) const; + + /* Set volume for all channels. This is the preferred API for new applications, + * especially for multi-channel content. + */ + status_t setVolume(float volume); /* Set the send level for this track. An auxiliary effect should be attached * to the track with attachEffect(). Level must be >= 0.0 and <= 1.0. |