blob: 22c9a77305db0bc94e047759e80214951d9e1bb8 [file] [log] [blame]
Glenn Kasten963fd952013-04-18 17:26:23 -07001page.title=Audio Terminology
2@jd:body
3
Clay Murphybc92aea2014-10-16 10:13:18 -07004<!--
Clay Murphy5d83ab42014-09-09 17:29:09 -07005 Copyright 2014 The Android Open Source Project
Clay Murphybc92aea2014-10-16 10:13:18 -07006
7 Licensed under the Apache License, Version 2.0 (the "License");
8 you may not use this file except in compliance with the License.
9 You may obtain a copy of the License at
10
11 http://www.apache.org/licenses/LICENSE-2.0
12
13 Unless required by applicable law or agreed to in writing, software
14 distributed under the License is distributed on an "AS IS" BASIS,
15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 See the License for the specific language governing permissions and
17 limitations under the License.
18-->
Glenn Kasten963fd952013-04-18 17:26:23 -070019<div id="qv-wrapper">
20 <div id="qv">
21 <h2>In this document</h2>
22 <ol id="auto-toc">
23 </ol>
24 </div>
25</div>
26
27<p>
28This document provides a glossary of audio-related terminology, including
29a list of widely used, generic terms and a list of terms that are specific
30to Android.
31</p>
32
33<h2 id="genericTerm">Generic Terms</h2>
34
35<p>
36These are audio terms that are widely used, with their conventional meanings.
37</p>
38
Glenn Kasten5df2d522013-09-27 11:50:35 -070039<h3 id="digitalAudioTerms">Digital Audio</h3>
40
Glenn Kasten963fd952013-04-18 17:26:23 -070041<dl>
42
Glenn Kasten298f3822013-06-12 17:17:36 -070043<dt>acoustics</dt>
44<dd>
45The study of the mechanical properties of sound, for example how the
46physical placement of transducers such as speakers and microphones on
47a device affects perceived audio quality.
48</dd>
49
Glenn Kasten5df2d522013-09-27 11:50:35 -070050<dt>attenuation</dt>
51<dd>
52A multiplicative factor less than or equal to 1.0,
53applied to an audio signal to decrease the signal level.
54Compare to "gain".
55</dd>
56
Glenn Kasten963fd952013-04-18 17:26:23 -070057<dt>bits per sample or bit depth</dt>
58<dd>
59Number of bits of information per sample.
60</dd>
61
62<dt>channel</dt>
63<dd>
64A single stream of audio information, usually corresponding to one
65location of recording or playback.
66</dd>
67
Glenn Kasten5df2d522013-09-27 11:50:35 -070068<dt>downmixing</dt>
69<dd>
70To decrease the number of channels, e.g. from stereo to mono, or from 5.1 to stereo.
71This can be accomplished by dropping some channels, mixing channels, or more advanced signal processing.
72Simple mixing without attenuation or limiting has the potential for overflow and clipping.
73Compare to "upmixing".
Glenn Kastenfdc7b7b2013-10-28 11:11:34 -070074</dd>
75
76<dt>duck</dt>
77<dd>
78To temporarily reduce the volume of one stream, when another stream
79becomes active. For example, if music is playing and a notification arrives,
80then the music stream could be ducked while the notification plays.
81Compare to "mute".
82</dd>
Glenn Kasten5df2d522013-09-27 11:50:35 -070083
Glenn Kasten963fd952013-04-18 17:26:23 -070084<dt>frame</dt>
85<dd>
86A set of samples, one per channel, at a point in time.
87</dd>
88
89<dt>frames per buffer</dt>
90<dd>
91The number of frames handed from one module to the next at once;
92for example the audio HAL interface uses this concept.
93</dd>
94
Glenn Kasten5df2d522013-09-27 11:50:35 -070095<dt>gain</dt>
96<dd>
97A multiplicative factor greater than or equal to 1.0,
98applied to an audio signal to increase the signal level.
99Compare to "attenuation".
100</dd>
101
Glenn Kasten298f3822013-06-12 17:17:36 -0700102<dt>Hz</dt>
103<dd>
104The units for sample rate or frame rate.
105</dd>
106
107<dt>latency</dt>
108<dd>
109Time delay as a signal passes through a system.
110</dd>
111
Glenn Kasten963fd952013-04-18 17:26:23 -0700112<dt>mono</dt>
113<dd>
114One channel.
115</dd>
116
Glenn Kasten5df2d522013-09-27 11:50:35 -0700117<dt>multichannel</dt>
118<dd>
119See "surround sound".
120Strictly, since stereo is more than one channel, it is also "multi" channel.
121But that usage would be confusing.
122</dd>
123
Glenn Kastenfdc7b7b2013-10-28 11:11:34 -0700124<dt>mute</dt>
125<dd>
126To (temporarily) force volume to be zero, independently from the usual volume controls.
127</dd>
128
Glenn Kasten5df2d522013-09-27 11:50:35 -0700129<dt>PCM</dt>
130<dd>
131Pulse Code Modulation, the most common low-level encoding of digital audio.
132The audio signal is sampled at a regular interval, called the sample rate,
133and then quantized to discrete values within a particular range depending on the bit depth.
134For example, for 16-bit PCM, the sample values are integers between -32768 and +32767.
135</dd>
136
Glenn Kastenfdc7b7b2013-10-28 11:11:34 -0700137<dt>ramp</dt>
138<dd>
139To gradually increase or decrease the level of a particular audio parameter,
140for example volume or the strength of an effect.
141A volume ramp is commonly applied when pausing and resuming music, to avoid a hard audible transition.
142</dd>
143
Glenn Kasten963fd952013-04-18 17:26:23 -0700144<dt>sample</dt>
145<dd>
146A number representing the audio value for a single channel at a point in time.
147</dd>
148
149<dt>sample rate or frame rate</dt>
150<dd>
151Number of frames per second;
152note that "frame rate" is thus more accurate,
Clay Murphyc28f2372013-09-25 16:13:40 -0700153but "sample rate" is conventionally used to mean "frame rate."
Glenn Kasten963fd952013-04-18 17:26:23 -0700154</dd>
155
Glenn Kastenfdc7b7b2013-10-28 11:11:34 -0700156<dt>sonification</dt>
157<dd>
158The use of sound to express feedback or information,
159for example touch sounds and keyboard sounds.
160</dd>
161
Glenn Kasten963fd952013-04-18 17:26:23 -0700162<dt>stereo</dt>
163<dd>
164Two channels.
165</dd>
166
Glenn Kasten5df2d522013-09-27 11:50:35 -0700167<dt>stereo widening</dt>
168<dd>
169An effect applied to a stereo signal, to make another stereo signal which sounds fuller and richer.
170The effect can also be applied to a mono signal, in which case it is a type of upmixing.
171</dd>
172
173<dt>surround sound</dt>
174<dd>
175Various techniques for increasing the ability of a listener to perceive
176sound position beyond stereo left and right.
177</dd>
178
179<dt>upmixing</dt>
180<dd>
181To increase the number of channels, e.g. from mono to stereo, or from stereo to surround sound.
182This can be accomplished by duplication, panning, or more advanced signal processing.
183Compare to "downmixing".
Glenn Kasten795a9de2014-01-24 08:58:56 -0800184</dd>
Glenn Kasten963fd952013-04-18 17:26:23 -0700185
Glenn Kasten5df2d522013-09-27 11:50:35 -0700186<dt>virtualizer</dt>
187<dd>
188An effect that attempts to spatialize audio channels, such as trying to
189simulate more speakers, or give the illusion that various sound sources have position.
190</dd>
191
Glenn Kastenfdc7b7b2013-10-28 11:11:34 -0700192<dt>volume</dt>
193<dd>
194Loudness, the subjective strength of an audio signal.
195</dd>
196
Glenn Kasten795a9de2014-01-24 08:58:56 -0800197</dl>
198
Glenn Kasten5df2d522013-09-27 11:50:35 -0700199<h3 id="hardwareTerms">Hardware and Accessories</h3>
200
201<p>
202These terms are related to audio hardware and accessories.
203</p>
204
205<h4 id="interDeviceTerms">Inter-device interconnect</h4>
206
207<p>
208These technologies connect audio and video components between devices,
209and are readily visible at the external connectors. The HAL implementor
210may need to be aware of these, as well as the end user.
211</p>
212
213<dl>
214
215<dt>Bluetooth</dt>
216<dd>
217A short range wireless technology.
218The major audio-related
Clay Murphy5d83ab42014-09-09 17:29:09 -0700219<a href="http://en.wikipedia.org/wiki/Bluetooth_profile"
Glenn Kasten5df2d522013-09-27 11:50:35 -0700220target="_android">Bluetooth profiles</a>
221and
Clay Murphy5d83ab42014-09-09 17:29:09 -0700222<a href="http://en.wikipedia.org/wiki/Bluetooth_protocols"
Glenn Kasten5df2d522013-09-27 11:50:35 -0700223target="_android">Bluetooth protocols</a>
224are described at these Wikipedia articles:
225
226<ul>
227
Clay Murphy5d83ab42014-09-09 17:29:09 -0700228<li><a href="http://en.wikipedia.org/wiki/Bluetooth_profile#Advanced_Audio_Distribution_Profile_.28A2DP.29"
Glenn Kasten5df2d522013-09-27 11:50:35 -0700229target="_android">A2DP</a>
230for music
231</li>
232
Clay Murphy5d83ab42014-09-09 17:29:09 -0700233<li><a href="http://en.wikipedia.org/wiki/Bluetooth_protocols#Synchronous_connection-oriented_.28SCO.29_link"
Glenn Kasten5df2d522013-09-27 11:50:35 -0700234target="_android">SCO</a>
235for telephony
236</li>
237
238</ul>
239
240</dd>
241
242<dt>DisplayPort</dt>
243<dd>
244Digital display interface by VESA.
245</dd>
246
247<dt>HDMI</dt>
248<dd>
249High-Definition Multimedia Interface, an interface for transferring
250audio and video data. For mobile devices, either a micro-HDMI (type D) or MHL connector is used.
251</dd>
252
253<dt>MHL</dt>
254<dd>
255Mobile High-Definition Link is a mobile audio/video interface, often
256over micro-USB connector.
257</dd>
258
259<dt>phone connector</dt>
260<dd>
261A mini or sub-mini phone connector
262connects a device to wired headphones, headset, or line-level amplifier.
263</dd>
264
265<dt>SlimPort</dt>
266<dd>
267An adapter from micro-USB to HDMI.
268</dd>
269
270<dt>S/PDIF</dt>
271<dd>
272Sony/Philips Digital Interface Format is an interconnect for uncompressed PCM.
Clay Murphy5d83ab42014-09-09 17:29:09 -0700273See Wikipedia article <a href="http://en.wikipedia.org/wiki/S/PDIF"
Glenn Kasten5df2d522013-09-27 11:50:35 -0700274target="_android">S/PDIF</a>.
275</dd>
276
277<dt>USB</dt>
278<dd>
279Universal Serial Bus.
Clay Murphy5d83ab42014-09-09 17:29:09 -0700280See Wikipedia article <a href="http://en.wikipedia.org/wiki/USB" target="_android">USB</a>.
Glenn Kasten5df2d522013-09-27 11:50:35 -0700281</dd>
282
283</dl>
284
285<h4 id="intraDeviceTerms">Intra-device interconnect</h4>
286
287<p>
288These technologies connect internal audio components within a given
289device, and are not visible without disassembling the device. The HAL
290implementor may need to be aware of these, but not the end user.
291</p>
292
293See these Wikipedia articles:
294<ul>
Clay Murphy5d83ab42014-09-09 17:29:09 -0700295<li><a href="http://en.wikipedia.org/wiki/General-purpose_input/output"
Glenn Kasten5df2d522013-09-27 11:50:35 -0700296target="_android">GPIO</a></li>
Clay Murphy5d83ab42014-09-09 17:29:09 -0700297<li><a href="http://en.wikipedia.org/wiki/I%C2%B2C" target="_android">I²C</a></li>
298<li><a href="http://en.wikipedia.org/wiki/I%C2%B2S" target="_android">I²S</a></li>
299<li><a href="http://en.wikipedia.org/wiki/McASP" target="_android">McASP</a></li>
300<li><a href="http://en.wikipedia.org/wiki/SLIMbus" target="_android">SLIMbus</a></li>
301<li><a href="http://en.wikipedia.org/wiki/Serial_Peripheral_Interface_Bus"
Glenn Kasten5df2d522013-09-27 11:50:35 -0700302target="_android">SPI</a></li>
303</ul>
304
305<h3 id="signalTerms">Audio Signal Path</h3>
306
307<p>
308These terms are related to the signal path that audio data follows from
309an application to the transducer, or vice-versa.
310</p>
311
Glenn Kasten795a9de2014-01-24 08:58:56 -0800312<dl>
313
Glenn Kasten5df2d522013-09-27 11:50:35 -0700314<dt>ADC</dt>
315<dd>
316Analog to digital converter, a module that converts an analog signal
317(continuous in both time and amplitude) to a digital signal (discrete in
318both time and amplitude). Conceptually, an ADC consists of a periodic
319sample-and-hold followed by a quantizer, although it does not have to
320be implemented that way. An ADC is usually preceded by a low-pass filter
321to remove any high frequency components that are not representable using
322the desired sample rate. See Wikipedia article
Clay Murphy5d83ab42014-09-09 17:29:09 -0700323<a href="http://en.wikipedia.org/wiki/Analog-to-digital_converter"
Glenn Kasten5df2d522013-09-27 11:50:35 -0700324target="_android">Analog-to-digital_converter</a>.
325</dd>
326
327<dt>AP</dt>
328<dd>
329Application processor, the main general-purpose computer on a mobile device.
330</dd>
331
332<dt>codec</dt>
333<dd>
334Coder-decoder, a module that encodes and/or decodes an audio signal
335from one representation to another. Typically this is analog to PCM, or PCM to analog.
336Strictly, the term "codec" is reserved for modules that both encode and decode,
337however it can also more loosely refer to only one of these.
338See Wikipedia article
Clay Murphy5d83ab42014-09-09 17:29:09 -0700339<a href="http://en.wikipedia.org/wiki/Audio_codec" target="_android">Audio codec</a>.
Glenn Kasten5df2d522013-09-27 11:50:35 -0700340</dd>
341
342<dt>DAC</dt>
343<dd>
344Digital to analog converter, a module that converts a digital signal
345(discrete in both time and amplitude) to an analog signal
346(continuous in both time and amplitude). A DAC is usually followed by
347a low-pass filter to remove any high frequency components introduced
348by digital quantization.
349See Wikipedia article
Clay Murphy5d83ab42014-09-09 17:29:09 -0700350<a href="http://en.wikipedia.org/wiki/Digital-to-analog_converter"
Glenn Kasten5df2d522013-09-27 11:50:35 -0700351target="_android">Digital-to-analog converter</a>.
352</dd>
353
354<dt>DSP</dt>
355<dd>
356Digital Signal Processor, an optional component which is typically located
357after the application processor (for output), or before the application processor (for input).
358The primary purpose of a DSP is to off-load the application processor,
359and provide signal processing features at a lower power cost.
360</dd>
361
362<dt>PDM</dt>
363<dd>
364Pulse-density modulation
365is a form of modulation used to represent an analog signal by a digital signal,
366where the relative density of 1s versus 0s indicates the signal level.
367It is commonly used by digital to analog converters.
368See Wikipedia article
Clay Murphy5d83ab42014-09-09 17:29:09 -0700369<a href="http://en.wikipedia.org/wiki/Pulse-density_modulation"
Glenn Kasten5df2d522013-09-27 11:50:35 -0700370target="_android">Pulse-density modulation</a>.
371</dd>
372
373<dt>PWM</dt>
374<dd>
375Pulse-width modulation
376is a form of modulation used to represent an analog signal by a digital signal,
377where the relative width of a digital pulse indicates the signal level.
378It is commonly used by analog to digital converters.
379See Wikipedia article
Clay Murphy5d83ab42014-09-09 17:29:09 -0700380<a href="http://en.wikipedia.org/wiki/Pulse-width_modulation"
Glenn Kasten5df2d522013-09-27 11:50:35 -0700381target="_android">Pulse-width modulation</a>.
382</dd>
383
Glenn Kasten795a9de2014-01-24 08:58:56 -0800384</dl>
Glenn Kasten5df2d522013-09-27 11:50:35 -0700385
Clay Murphy5d83ab42014-09-09 17:29:09 -0700386<h3 id="srcTerms">Sample Rate Conversion</h3>
387
388<dl>
389
390<dt>downsample</dt>
391<dd>To resample, where sink sample rate &lt; source sample rate.</dd>
392
393<dt>Nyquist frequency</dt>
394<dd>
395The Nyquist frequency, equal to 1/2 of a given sample rate, is the
396maximum frequency component that can be represented by a discretized
397signal at that sample rate. For example, the human hearing range is
398typically assumed to extend up to approximately 20 kHz, and so a digital
399audio signal must have a sample rate of at least 40 kHz to represent that
400range. In practice, sample rates of 44.1 kHz and 48 kHz are commonly
401used, with Nyquist frequencies of 22.05 kHz and 24 kHz respectively.
402See
403<a href="http://en.wikipedia.org/wiki/Nyquist_frequency" target="_android">Nyquist frequency</a>
404and
405<a href="http://en.wikipedia.org/wiki/Hearing_range" target="_android">Hearing range</a>
406for more information.
407</dd>
408
409<dt>resampler</dt>
410<dd>Synonym for sample rate converter.</dd>
411
412<dt>resampling</dt>
413<dd>The process of converting sample rate.</dd>
414
415<dt>sample rate converter</dt>
416<dd>A module that resamples.</dd>
417
418<dt>sink</dt>
419<dd>The output of a resampler.</dd>
420
421<dt>source</dt>
422<dd>The input to a resampler.</dd>
423
424<dt>upsample</dt>
425<dd>To resample, where sink sample rate &gt; source sample rate.</dd>
426
427</dl>
428
Glenn Kasten963fd952013-04-18 17:26:23 -0700429<h2 id="androidSpecificTerms">Android-Specific Terms</h2>
430
431<p>
Clay Murphyc28f2372013-09-25 16:13:40 -0700432These are terms specific to the Android audio framework, or that
Glenn Kasten963fd952013-04-18 17:26:23 -0700433may have a special meaning within Android beyond their general meaning.
434</p>
435
436<dl>
437
438<dt>ALSA</dt>
439<dd>
440Advanced Linux Sound Architecture. As the name suggests, it is an audio
441framework primarily for Linux, but it has influenced other systems.
442See Wikipedia article
Clay Murphy5d83ab42014-09-09 17:29:09 -0700443<a href="http://en.wikipedia.org/wiki/Advanced_Linux_Sound_Architecture" target="_android">ALSA</a>
Glenn Kasten963fd952013-04-18 17:26:23 -0700444for the general definition. As used within Android, it refers primarily
445to the kernel audio framework and drivers, not to the user-mode API. See
446tinyalsa.
447</dd>
448
Glenn Kasten298f3822013-06-12 17:17:36 -0700449<dt>AudioEffect</dt>
450<dd>
451An API and implementation framework for output (post-processing) effects
452and input (pre-processing) effects. The API is defined at
Glenn Kasten5df2d522013-09-27 11:50:35 -0700453<a href="http://developer.android.com/reference/android/media/audiofx/AudioEffect.html" target="_android">android.media.audiofx.AudioEffect</a>.
Glenn Kasten298f3822013-06-12 17:17:36 -0700454</dd>
455
Glenn Kasten963fd952013-04-18 17:26:23 -0700456<dt>AudioFlinger</dt>
457<dd>
458The sound server implementation for Android. AudioFlinger
459runs within the mediaserver process. See Wikipedia article
Clay Murphy5d83ab42014-09-09 17:29:09 -0700460<a href="http://en.wikipedia.org/wiki/Sound_server" target="_android">Sound server</a>
Glenn Kasten963fd952013-04-18 17:26:23 -0700461for the generic definition.
462</dd>
463
Glenn Kastenfdc7b7b2013-10-28 11:11:34 -0700464<dt>audio focus</dt>
465<dd>
466A set of APIs for managing audio interactions across multiple independent apps.
467See <a href="http://developer.android.com/training/managing-audio/audio-focus.html">Managing Audio
468Focus</a> and the focus-related methods and constants of
469<a href="http://developer.android.com/reference/android/media/AudioManager.html">android.media.AudioManager</a>.
470</dd>
471
Glenn Kasten963fd952013-04-18 17:26:23 -0700472<dt>AudioMixer</dt>
473<dd>
474The module within AudioFlinger responsible for
475combining multiple tracks and applying attenuation
476(volume) and certain effects. The Wikipedia article
Clay Murphy5d83ab42014-09-09 17:29:09 -0700477<a href="http://en.wikipedia.org/wiki/Audio_mixing_(recorded_music)" target="_android">Audio mixing (recorded music)</a>
Glenn Kasten963fd952013-04-18 17:26:23 -0700478may be useful for understanding the generic
479concept. But that article describes a mixer more as a hardware device
480or a software application, rather than a software module within a system.
481</dd>
482
Glenn Kasten5df2d522013-09-27 11:50:35 -0700483<dt>audio policy</dt>
484<dd>
485Service responsible for all actions that require a policy decision
486to be made first, such as opening a new I/O stream, re-routing after a
487change and stream volume management.
488</dd>
489
Glenn Kasten963fd952013-04-18 17:26:23 -0700490<dt>AudioRecord</dt>
491<dd>
492The primary low-level client API for receiving data from an audio
Clay Murphyc28f2372013-09-25 16:13:40 -0700493input device such as microphone. The data is usually in pulse-code modulation
494(PCM) format.
Glenn Kasten5df2d522013-09-27 11:50:35 -0700495The API is defined at
496<a href="http://developer.android.com/reference/android/media/AudioRecord.html"
497target="_android">android.media.AudioRecord</a>.
498</dd>
Glenn Kasten963fd952013-04-18 17:26:23 -0700499
500<dt>AudioResampler</dt>
501<dd>
Glenn Kasten46ac61c2014-01-24 08:59:11 -0800502The module within AudioFlinger responsible for
503<a href="audio_src.html">sample rate conversion</a>.
Glenn Kasten963fd952013-04-18 17:26:23 -0700504</dd>
505
Glenn Kasten963fd952013-04-18 17:26:23 -0700506<dt>AudioTrack</dt>
507<dd>
508The primary low-level client API for sending data to an audio output
509device such as a speaker. The data is usually in PCM format.
Glenn Kasten5df2d522013-09-27 11:50:35 -0700510The API is defined at
511<a href="http://developer.android.com/reference/android/media/AudioTrack.html"
512target="_android">android.media.AudioTrack</a>.
Glenn Kasten963fd952013-04-18 17:26:23 -0700513</dd>
514
515<dt>client</dt>
516<dd>
517Usually same as application or app, but sometimes the "client" of
518AudioFlinger is actually a thread running within the mediaserver system
519process. An example of that is when playing media that is decoded by a
520MediaPlayer object.
521</dd>
522
523<dt>HAL</dt>
524<dd>
525Hardware Abstraction Layer. HAL is a generic term in Android. With
526respect to audio, it is a layer between AudioFlinger and the kernel
527device driver with a C API, which replaces the earlier C++ libaudio.
528</dd>
529
530<dt>FastMixer</dt>
531<dd>
532A thread within AudioFlinger that services lower latency "fast tracks"
533and drives the primary output device.
534</dd>
535
536<dt>fast track</dt>
537<dd>
538An AudioTrack client with lower latency but fewer features, on some devices.
539</dd>
540
541<dt>MediaPlayer</dt>
542<dd>
543A higher-level client API than AudioTrack, for playing either encoded
Clay Murphyc28f2372013-09-25 16:13:40 -0700544content, or content which includes multimedia audio and video tracks.
Glenn Kasten963fd952013-04-18 17:26:23 -0700545</dd>
546
Glenn Kasten298f3822013-06-12 17:17:36 -0700547<dt>media.log</dt>
548<dd>
549An AudioFlinger debugging feature, available in custom builds only,
550for logging audio events to a circular buffer where they can then be
551dumped retroactively when needed.
552</dd>
553
Glenn Kasten963fd952013-04-18 17:26:23 -0700554<dt>mediaserver</dt>
555<dd>
556An Android system process that contains a number of media-related
557services, including AudioFlinger.
558</dd>
559
560<dt>NBAIO</dt>
561<dd>
562An abstraction for "non-blocking" audio input/output ports used within
563AudioFlinger. The name can be misleading, as some implementations of
564the NBAIO API actually do support blocking. The key implementations of
565NBAIO are for pipes of various kinds.
566</dd>
567
568<dt>normal mixer</dt>
569<dd>
570A thread within AudioFlinger that services most full-featured
571AudioTrack clients, and either directly drives an output device or feeds
Clay Murphyc28f2372013-09-25 16:13:40 -0700572its sub-mix into FastMixer via a pipe.
Glenn Kasten963fd952013-04-18 17:26:23 -0700573</dd>
574
575<dt>OpenSL ES</dt>
576<dd>
577An audio API standard by The Khronos Group. Android versions since
578API level 9 support a native audio API which is based on a subset of
579OpenSL ES 1.0.1.
580</dd>
581
Glenn Kastenfdc7b7b2013-10-28 11:11:34 -0700582<dt>silent mode</dt>
583<dd>
584A user-settable feature to mute the phone ringer and notifications,
585without affecting media playback (music, videos, games) or alarms.
586</dd>
587
Glenn Kasten5df2d522013-09-27 11:50:35 -0700588<dt>SoundPool</dt>
589<dd>
590A higher-level client API than AudioTrack, used for playing sampled
591audio clips. It is useful for triggering UI feedback, game sounds, etc.
592The API is defined at
593<a href="http://developer.android.com/reference/android/media/SoundPool.html"
594target="_android">android.media.SoundPool</a>.
595</dd>
Glenn Kasten5df2d522013-09-27 11:50:35 -0700596
597<dt>Stagefright</dt>
598<dd>
599See <a href="{@docRoot}devices/media.html">Media</a>.
600</dd>
601
Glenn Kasten963fd952013-04-18 17:26:23 -0700602<dt>StateQueue</dt>
603<dd>
604A module within AudioFlinger responsible for synchronizing state
605among threads. Whereas NBAIO is used to pass data, StateQueue is used
606to pass control information.
607</dd>
608
Glenn Kastenfdc7b7b2013-10-28 11:11:34 -0700609<dt>strategy</dt>
610<dd>
611A grouping of stream types with similar behavior, used by the audio policy service.
612</dd>
613
614<dt>stream type</dt>
615<dd>
616An enumeration that expresses a use case for audio output.
617The audio policy implementation uses the stream type, along with other parameters,
618to determine volume and routing decisions.
619Specific stream types are listed at
620<a href="http://developer.android.com/reference/android/media/AudioManager.html">android.media.AudioManager</a>.
621</dd>
622
Glenn Kasten298f3822013-06-12 17:17:36 -0700623<dt>tee sink</dt>
624<dd>
Glenn Kasten37784a52014-02-03 11:57:33 -0800625See the separate article on tee sink in
626<a href="audio_debugging.html#teeSink">Audio Debugging</a>.
Glenn Kasten298f3822013-06-12 17:17:36 -0700627</dd>
628
Glenn Kasten963fd952013-04-18 17:26:23 -0700629<dt>tinyalsa</dt>
630<dd>
631A small user-mode API above ALSA kernel with BSD license, recommended
Clay Murphyc28f2372013-09-25 16:13:40 -0700632for use in HAL implementations.
Glenn Kasten963fd952013-04-18 17:26:23 -0700633</dd>
634
Glenn Kastenfdc7b7b2013-10-28 11:11:34 -0700635<dt>ToneGenerator</dt>
636<dd>
637A higher-level client API than AudioTrack, used for playing DTMF signals.
638See the Wikipedia article
Clay Murphy5d83ab42014-09-09 17:29:09 -0700639<a href="http://en.wikipedia.org/wiki/Dual-tone_multi-frequency_signaling"
Glenn Kastenfdc7b7b2013-10-28 11:11:34 -0700640target="_android">Dual-tone multi-frequency signaling</a>,
641and the API definition at
642<a href="http://developer.android.com/reference/android/media/ToneGenerator.html"
643target="_android">android.media.ToneGenerator</a>.
644</dd>
645
Glenn Kasten963fd952013-04-18 17:26:23 -0700646<dt>track</dt>
647<dd>
648An audio stream, controlled by the AudioTrack API.
649</dd>
650
Glenn Kastenfdc7b7b2013-10-28 11:11:34 -0700651<dt>volume attenuation curve</dt>
652<dd>
653A device-specific mapping from a generic volume index to a particular attenuation factor
654for a given output.
655</dd>
656
657<dt>volume index</dt>
658<dd>
659A unitless integer that expresses the desired relative volume of a stream.
660The volume-related APIs of
661<a href="http://developer.android.com/reference/android/media/AudioManager.html">android.media.AudioManager</a>
662operate in volume indices rather than absolute attenuation factors.
663</dd>
664
Glenn Kasten963fd952013-04-18 17:26:23 -0700665</dl>