summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2014-04-30 15:50:31 -0700
committerGlenn Kasten <gkasten@google.com>2014-05-07 14:24:58 -0700
commitb773038277ba328696832b690b91ce6e95bd1a6c (patch)
tree8c2ed603c214332d4599c564a49e057b6095bd15 /include
parent8e085cbeccb1138d52a0a423af02e6ab41b4fee4 (diff)
downloadframeworks_av-b773038277ba328696832b690b91ce6e95bd1a6c.zip
frameworks_av-b773038277ba328696832b690b91ce6e95bd1a6c.tar.gz
frameworks_av-b773038277ba328696832b690b91ce6e95bd1a6c.tar.bz2
Add client side support for more AUDIO_FORMAT_PCM_*
As much as possible, the checks for specific formats are done on server side. The only exception is 8-bit, which needs a client side workaround. Change-Id: I52fe086c039460c8dac009de03b67eb54c56a836
Diffstat (limited to 'include')
-rw-r--r--include/media/AudioTrack.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/media/AudioTrack.h b/include/media/AudioTrack.h
index 2c48bbf..79db323 100644
--- a/include/media/AudioTrack.h
+++ b/include/media/AudioTrack.h
@@ -154,8 +154,9 @@ public:
* streamType: Select the type of audio stream this track is attached to
* (e.g. AUDIO_STREAM_MUSIC).
* sampleRate: Data source sampling rate in Hz.
- * format: Audio format (e.g AUDIO_FORMAT_PCM_16_BIT for signed
- * 16 bits per sample).
+ * format: Audio format. For mixed tracks, any PCM format supported by server is OK
+ * or AUDIO_FORMAT_PCM_8_BIT which is handled on client side. For direct
+ * and offloaded tracks, the possible format(s) depends on the output sink.
* channelMask: Channel mask, such that audio_is_output_channel(channelMask) is true.
* frameCount: Minimum size of track PCM buffer in frames. This defines the
* application's contribution to the