blob: ba2eb199c55f38ac8bed64eab707abcf006d81fd [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.
Glenn Kasten978bec82014-12-23 15:15:20 -080054Compare to "gain."
Glenn Kasten5df2d522013-09-27 11:50:35 -070055</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.
Glenn Kasten978bec82014-12-23 15:15:20 -080073Compare 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.
Glenn Kasten978bec82014-12-23 15:15:20 -080081Compare to "mute."
Glenn Kastenfdc7b7b2013-10-28 11:11:34 -070082</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.
Glenn Kasten978bec82014-12-23 15:15:20 -080099Compare to "attenuation."
Glenn Kasten5df2d522013-09-27 11:50:35 -0700100</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 Kasten978bec82014-12-23 15:15:20 -0800129<dt>overrun</dt>
130<dd>
131An audible <a href="http://en.wikipedia.org/wiki/Glitch">glitch</a> caused by failure
132to accept supplied data in sufficient time.
133See Wikipedia article <a href="http://en.wikipedia.org/wiki/Buffer_underrun">buffer underrun</a>
134[sic; the article for "buffer overrun" describes an unrelated failure].
135Compare to "underrun."
136</dd>
137
138<dt>panning</dt>
139<dd>
140To direct a signal to a desired position within a stereo or multi-channel field.
141</dd>
142
Glenn Kasten5df2d522013-09-27 11:50:35 -0700143<dt>PCM</dt>
144<dd>
145Pulse Code Modulation, the most common low-level encoding of digital audio.
146The audio signal is sampled at a regular interval, called the sample rate,
147and then quantized to discrete values within a particular range depending on the bit depth.
148For example, for 16-bit PCM, the sample values are integers between -32768 and +32767.
149</dd>
150
Glenn Kastenfdc7b7b2013-10-28 11:11:34 -0700151<dt>ramp</dt>
152<dd>
153To gradually increase or decrease the level of a particular audio parameter,
154for example volume or the strength of an effect.
155A volume ramp is commonly applied when pausing and resuming music, to avoid a hard audible transition.
156</dd>
157
Glenn Kasten963fd952013-04-18 17:26:23 -0700158<dt>sample</dt>
159<dd>
160A number representing the audio value for a single channel at a point in time.
161</dd>
162
163<dt>sample rate or frame rate</dt>
164<dd>
165Number of frames per second;
166note that "frame rate" is thus more accurate,
Clay Murphyc28f2372013-09-25 16:13:40 -0700167but "sample rate" is conventionally used to mean "frame rate."
Glenn Kasten963fd952013-04-18 17:26:23 -0700168</dd>
169
Glenn Kastenfdc7b7b2013-10-28 11:11:34 -0700170<dt>sonification</dt>
171<dd>
172The use of sound to express feedback or information,
173for example touch sounds and keyboard sounds.
174</dd>
175
Glenn Kasten963fd952013-04-18 17:26:23 -0700176<dt>stereo</dt>
177<dd>
178Two channels.
179</dd>
180
Glenn Kasten5df2d522013-09-27 11:50:35 -0700181<dt>stereo widening</dt>
182<dd>
183An effect applied to a stereo signal, to make another stereo signal which sounds fuller and richer.
184The effect can also be applied to a mono signal, in which case it is a type of upmixing.
185</dd>
186
187<dt>surround sound</dt>
188<dd>
189Various techniques for increasing the ability of a listener to perceive
190sound position beyond stereo left and right.
191</dd>
192
Glenn Kasten978bec82014-12-23 15:15:20 -0800193<dt>underrun</dt>
194<dd>
195An audible <a href="http://en.wikipedia.org/wiki/Glitch">glitch</a> caused by failure
196to supply needed data in sufficient time.
197See Wikipedia article <a href="http://en.wikipedia.org/wiki/Buffer_underrun">buffer underrun</a>.
198Compare to "overrun."
199</dd>
200
Glenn Kasten5df2d522013-09-27 11:50:35 -0700201<dt>upmixing</dt>
202<dd>
203To increase the number of channels, e.g. from mono to stereo, or from stereo to surround sound.
204This can be accomplished by duplication, panning, or more advanced signal processing.
Glenn Kasten978bec82014-12-23 15:15:20 -0800205Compare to "downmixing."
Glenn Kasten795a9de2014-01-24 08:58:56 -0800206</dd>
Glenn Kasten963fd952013-04-18 17:26:23 -0700207
Glenn Kasten5df2d522013-09-27 11:50:35 -0700208<dt>virtualizer</dt>
209<dd>
210An effect that attempts to spatialize audio channels, such as trying to
211simulate more speakers, or give the illusion that various sound sources have position.
212</dd>
213
Glenn Kastenfdc7b7b2013-10-28 11:11:34 -0700214<dt>volume</dt>
215<dd>
216Loudness, the subjective strength of an audio signal.
217</dd>
218
Glenn Kasten795a9de2014-01-24 08:58:56 -0800219</dl>
220
Glenn Kasten5df2d522013-09-27 11:50:35 -0700221<h3 id="hardwareTerms">Hardware and Accessories</h3>
222
223<p>
224These terms are related to audio hardware and accessories.
225</p>
226
227<h4 id="interDeviceTerms">Inter-device interconnect</h4>
228
229<p>
230These technologies connect audio and video components between devices,
231and are readily visible at the external connectors. The HAL implementor
232may need to be aware of these, as well as the end user.
233</p>
234
235<dl>
236
237<dt>Bluetooth</dt>
238<dd>
239A short range wireless technology.
240The major audio-related
Clay Murphydc85c742014-09-10 15:10:03 -0700241<a href="http://en.wikipedia.org/wiki/Bluetooth_profile">Bluetooth profiles</a>
Glenn Kasten5df2d522013-09-27 11:50:35 -0700242and
Clay Murphydc85c742014-09-10 15:10:03 -0700243<a href="http://en.wikipedia.org/wiki/Bluetooth_protocols">Bluetooth protocols</a>
Glenn Kasten5df2d522013-09-27 11:50:35 -0700244are described at these Wikipedia articles:
245
246<ul>
247
Clay Murphydc85c742014-09-10 15:10:03 -0700248<li><a href="http://en.wikipedia.org/wiki/Bluetooth_profile#Advanced_Audio_Distribution_Profile_.28A2DP.29">A2DP</a>
Glenn Kasten5df2d522013-09-27 11:50:35 -0700249for music
250</li>
251
Clay Murphydc85c742014-09-10 15:10:03 -0700252<li><a href="http://en.wikipedia.org/wiki/Bluetooth_protocols#Synchronous_connection-oriented_.28SCO.29_link">SCO</a>
Glenn Kasten5df2d522013-09-27 11:50:35 -0700253for telephony
254</li>
255
Glenn Kasten978bec82014-12-23 15:15:20 -0800256<li><a href="http://en.wikipedia.org/wiki/List_of_Bluetooth_profiles#Audio.2FVideo_Remote_Control_Profile_.28AVRCP.29">Audio/Video Remote Control Profile (AVRCP)</a>
257</li>
258
Glenn Kasten5df2d522013-09-27 11:50:35 -0700259</ul>
260
261</dd>
262
263<dt>DisplayPort</dt>
264<dd>
265Digital display interface by VESA.
266</dd>
267
268<dt>HDMI</dt>
269<dd>
270High-Definition Multimedia Interface, an interface for transferring
271audio and video data. For mobile devices, either a micro-HDMI (type D) or MHL connector is used.
272</dd>
273
274<dt>MHL</dt>
275<dd>
276Mobile High-Definition Link is a mobile audio/video interface, often
277over micro-USB connector.
278</dd>
279
280<dt>phone connector</dt>
281<dd>
282A mini or sub-mini phone connector
283connects a device to wired headphones, headset, or line-level amplifier.
284</dd>
285
286<dt>SlimPort</dt>
287<dd>
288An adapter from micro-USB to HDMI.
289</dd>
290
291<dt>S/PDIF</dt>
292<dd>
293Sony/Philips Digital Interface Format is an interconnect for uncompressed PCM.
Clay Murphydc85c742014-09-10 15:10:03 -0700294See Wikipedia article <a href="http://en.wikipedia.org/wiki/S/PDIF">S/PDIF</a>.
Glenn Kasten5df2d522013-09-27 11:50:35 -0700295</dd>
296
297<dt>USB</dt>
298<dd>
299Universal Serial Bus.
Clay Murphydc85c742014-09-10 15:10:03 -0700300See Wikipedia article <a href="http://en.wikipedia.org/wiki/USB">USB</a>.
Glenn Kasten5df2d522013-09-27 11:50:35 -0700301</dd>
302
303</dl>
304
305<h4 id="intraDeviceTerms">Intra-device interconnect</h4>
306
307<p>
308These technologies connect internal audio components within a given
309device, and are not visible without disassembling the device. The HAL
310implementor may need to be aware of these, but not the end user.
311</p>
312
313See these Wikipedia articles:
314<ul>
Clay Murphydc85c742014-09-10 15:10:03 -0700315<li><a href="http://en.wikipedia.org/wiki/General-purpose_input/output">GPIO</a></li>
Glenn Kasten978bec82014-12-23 15:15:20 -0800316<li><a href="http://en.wikipedia.org/wiki/I%C2%B2C">I²C</a>, for control channel</li>
317<li><a href="http://en.wikipedia.org/wiki/I%C2%B2S">I²S</a>, for audio data</li>
Clay Murphydc85c742014-09-10 15:10:03 -0700318<li><a href="http://en.wikipedia.org/wiki/McASP">McASP</a></li>
319<li><a href="http://en.wikipedia.org/wiki/SLIMbus">SLIMbus</a></li>
320<li><a href="http://en.wikipedia.org/wiki/Serial_Peripheral_Interface_Bus">SPI</a></li>
Glenn Kasten5df2d522013-09-27 11:50:35 -0700321</ul>
322
323<h3 id="signalTerms">Audio Signal Path</h3>
324
325<p>
326These terms are related to the signal path that audio data follows from
327an application to the transducer, or vice-versa.
328</p>
329
Glenn Kasten795a9de2014-01-24 08:58:56 -0800330<dl>
331
Glenn Kasten5df2d522013-09-27 11:50:35 -0700332<dt>ADC</dt>
333<dd>
334Analog to digital converter, a module that converts an analog signal
335(continuous in both time and amplitude) to a digital signal (discrete in
336both time and amplitude). Conceptually, an ADC consists of a periodic
337sample-and-hold followed by a quantizer, although it does not have to
338be implemented that way. An ADC is usually preceded by a low-pass filter
339to remove any high frequency components that are not representable using
340the desired sample rate. See Wikipedia article
Glenn Kastenff257d42014-11-10 16:29:03 -0800341<a href="http://en.wikipedia.org/wiki/Analog-to-digital_converter">Analog-to-digital converter</a>.
Glenn Kasten5df2d522013-09-27 11:50:35 -0700342</dd>
343
344<dt>AP</dt>
345<dd>
346Application processor, the main general-purpose computer on a mobile device.
347</dd>
348
349<dt>codec</dt>
350<dd>
351Coder-decoder, a module that encodes and/or decodes an audio signal
352from one representation to another. Typically this is analog to PCM, or PCM to analog.
353Strictly, the term "codec" is reserved for modules that both encode and decode,
354however it can also more loosely refer to only one of these.
355See Wikipedia article
Clay Murphydc85c742014-09-10 15:10:03 -0700356<a href="http://en.wikipedia.org/wiki/Audio_codec">Audio codec</a>.
Glenn Kasten5df2d522013-09-27 11:50:35 -0700357</dd>
358
359<dt>DAC</dt>
360<dd>
361Digital to analog converter, a module that converts a digital signal
362(discrete in both time and amplitude) to an analog signal
363(continuous in both time and amplitude). A DAC is usually followed by
364a low-pass filter to remove any high frequency components introduced
365by digital quantization.
366See Wikipedia article
Clay Murphydc85c742014-09-10 15:10:03 -0700367<a href="http://en.wikipedia.org/wiki/Digital-to-analog_converter">Digital-to-analog converter</a>.
Glenn Kasten5df2d522013-09-27 11:50:35 -0700368</dd>
369
370<dt>DSP</dt>
371<dd>
372Digital Signal Processor, an optional component which is typically located
373after the application processor (for output), or before the application processor (for input).
374The primary purpose of a DSP is to off-load the application processor,
375and provide signal processing features at a lower power cost.
376</dd>
377
378<dt>PDM</dt>
379<dd>
380Pulse-density modulation
381is a form of modulation used to represent an analog signal by a digital signal,
382where the relative density of 1s versus 0s indicates the signal level.
383It is commonly used by digital to analog converters.
384See Wikipedia article
Clay Murphydc85c742014-09-10 15:10:03 -0700385<a href="http://en.wikipedia.org/wiki/Pulse-density_modulation">Pulse-density modulation</a>.
Glenn Kasten5df2d522013-09-27 11:50:35 -0700386</dd>
387
388<dt>PWM</dt>
389<dd>
390Pulse-width modulation
391is a form of modulation used to represent an analog signal by a digital signal,
392where the relative width of a digital pulse indicates the signal level.
393It is commonly used by analog to digital converters.
394See Wikipedia article
Clay Murphydc85c742014-09-10 15:10:03 -0700395<a href="http://en.wikipedia.org/wiki/Pulse-width_modulation">Pulse-width modulation</a>.
Glenn Kasten5df2d522013-09-27 11:50:35 -0700396</dd>
397
Glenn Kasten978bec82014-12-23 15:15:20 -0800398<dt>transducer</dt>
399<dd>
400A transducer converts variations in physical "real-world" quantities to electrical signals.
401In audio, the physical quantity is sound pressure,
402and the transducers are the loudspeaker and microphone.
403See Wikipedia article
404<a href="http://en.wikipedia.org/wiki/Transducer">Transducer</a>.
405</dd>
406
Glenn Kasten795a9de2014-01-24 08:58:56 -0800407</dl>
Glenn Kasten5df2d522013-09-27 11:50:35 -0700408
Clay Murphy5d83ab42014-09-09 17:29:09 -0700409<h3 id="srcTerms">Sample Rate Conversion</h3>
410
411<dl>
412
413<dt>downsample</dt>
414<dd>To resample, where sink sample rate &lt; source sample rate.</dd>
415
416<dt>Nyquist frequency</dt>
417<dd>
418The Nyquist frequency, equal to 1/2 of a given sample rate, is the
419maximum frequency component that can be represented by a discretized
420signal at that sample rate. For example, the human hearing range is
421typically assumed to extend up to approximately 20 kHz, and so a digital
422audio signal must have a sample rate of at least 40 kHz to represent that
423range. In practice, sample rates of 44.1 kHz and 48 kHz are commonly
424used, with Nyquist frequencies of 22.05 kHz and 24 kHz respectively.
425See
Glenn Kastenff257d42014-11-10 16:29:03 -0800426<a href="http://en.wikipedia.org/wiki/Nyquist_frequency">Nyquist frequency</a>
Clay Murphy5d83ab42014-09-09 17:29:09 -0700427and
Glenn Kastenff257d42014-11-10 16:29:03 -0800428<a href="http://en.wikipedia.org/wiki/Hearing_range">Hearing range</a>
Clay Murphy5d83ab42014-09-09 17:29:09 -0700429for more information.
430</dd>
431
432<dt>resampler</dt>
433<dd>Synonym for sample rate converter.</dd>
434
435<dt>resampling</dt>
436<dd>The process of converting sample rate.</dd>
437
438<dt>sample rate converter</dt>
439<dd>A module that resamples.</dd>
440
441<dt>sink</dt>
442<dd>The output of a resampler.</dd>
443
444<dt>source</dt>
445<dd>The input to a resampler.</dd>
446
447<dt>upsample</dt>
448<dd>To resample, where sink sample rate &gt; source sample rate.</dd>
449
450</dl>
451
Glenn Kasten963fd952013-04-18 17:26:23 -0700452<h2 id="androidSpecificTerms">Android-Specific Terms</h2>
453
454<p>
Clay Murphyc28f2372013-09-25 16:13:40 -0700455These are terms specific to the Android audio framework, or that
Glenn Kasten963fd952013-04-18 17:26:23 -0700456may have a special meaning within Android beyond their general meaning.
457</p>
458
459<dl>
460
461<dt>ALSA</dt>
462<dd>
463Advanced Linux Sound Architecture. As the name suggests, it is an audio
464framework primarily for Linux, but it has influenced other systems.
465See Wikipedia article
Clay Murphydc85c742014-09-10 15:10:03 -0700466<a href="http://en.wikipedia.org/wiki/Advanced_Linux_Sound_Architecture">ALSA</a>
Glenn Kasten963fd952013-04-18 17:26:23 -0700467for the general definition. As used within Android, it refers primarily
468to the kernel audio framework and drivers, not to the user-mode API. See
469tinyalsa.
470</dd>
471
Glenn Kasten298f3822013-06-12 17:17:36 -0700472<dt>AudioEffect</dt>
473<dd>
474An API and implementation framework for output (post-processing) effects
475and input (pre-processing) effects. The API is defined at
Clay Murphydc85c742014-09-10 15:10:03 -0700476<a href="http://developer.android.com/reference/android/media/audiofx/AudioEffect.html">android.media.audiofx.AudioEffect</a>.
Glenn Kasten298f3822013-06-12 17:17:36 -0700477</dd>
478
Glenn Kasten963fd952013-04-18 17:26:23 -0700479<dt>AudioFlinger</dt>
480<dd>
481The sound server implementation for Android. AudioFlinger
482runs within the mediaserver process. See Wikipedia article
Clay Murphydc85c742014-09-10 15:10:03 -0700483<a href="http://en.wikipedia.org/wiki/Sound_server">Sound server</a>
Glenn Kasten963fd952013-04-18 17:26:23 -0700484for the generic definition.
485</dd>
486
Glenn Kastenfdc7b7b2013-10-28 11:11:34 -0700487<dt>audio focus</dt>
488<dd>
489A set of APIs for managing audio interactions across multiple independent apps.
490See <a href="http://developer.android.com/training/managing-audio/audio-focus.html">Managing Audio
491Focus</a> and the focus-related methods and constants of
492<a href="http://developer.android.com/reference/android/media/AudioManager.html">android.media.AudioManager</a>.
493</dd>
494
Glenn Kasten963fd952013-04-18 17:26:23 -0700495<dt>AudioMixer</dt>
496<dd>
497The module within AudioFlinger responsible for
498combining multiple tracks and applying attenuation
499(volume) and certain effects. The Wikipedia article
Clay Murphydc85c742014-09-10 15:10:03 -0700500<a href="http://en.wikipedia.org/wiki/Audio_mixing_(recorded_music)">Audio mixing (recorded music)</a>
Glenn Kasten963fd952013-04-18 17:26:23 -0700501may be useful for understanding the generic
502concept. But that article describes a mixer more as a hardware device
503or a software application, rather than a software module within a system.
504</dd>
505
Glenn Kasten5df2d522013-09-27 11:50:35 -0700506<dt>audio policy</dt>
507<dd>
508Service responsible for all actions that require a policy decision
509to be made first, such as opening a new I/O stream, re-routing after a
Glenn Kastenff257d42014-11-10 16:29:03 -0800510change, and stream volume management.
Glenn Kasten5df2d522013-09-27 11:50:35 -0700511</dd>
512
Glenn Kasten963fd952013-04-18 17:26:23 -0700513<dt>AudioRecord</dt>
514<dd>
515The primary low-level client API for receiving data from an audio
Clay Murphyc28f2372013-09-25 16:13:40 -0700516input device such as microphone. The data is usually in pulse-code modulation
517(PCM) format.
Glenn Kasten5df2d522013-09-27 11:50:35 -0700518The API is defined at
Clay Murphydc85c742014-09-10 15:10:03 -0700519<a href="http://developer.android.com/reference/android/media/AudioRecord.html">android.media.AudioRecord</a>.
Glenn Kasten5df2d522013-09-27 11:50:35 -0700520</dd>
Glenn Kasten963fd952013-04-18 17:26:23 -0700521
522<dt>AudioResampler</dt>
523<dd>
Glenn Kasten46ac61c2014-01-24 08:59:11 -0800524The module within AudioFlinger responsible for
Clay Murphy714cd072014-12-01 13:07:52 -0800525<a href="src.html">sample rate conversion</a>.
Glenn Kasten963fd952013-04-18 17:26:23 -0700526</dd>
527
Glenn Kasten963fd952013-04-18 17:26:23 -0700528<dt>AudioTrack</dt>
529<dd>
530The primary low-level client API for sending data to an audio output
531device such as a speaker. The data is usually in PCM format.
Glenn Kasten5df2d522013-09-27 11:50:35 -0700532The API is defined at
Clay Murphydc85c742014-09-10 15:10:03 -0700533<a href="http://developer.android.com/reference/android/media/AudioTrack.html">android.media.AudioTrack</a>.
Glenn Kasten963fd952013-04-18 17:26:23 -0700534</dd>
535
Glenn Kasten73512002015-01-15 10:06:31 -0800536<dt>audio_utils</dt>
537<dd>
538An audio utility library for features such as PCM format conversion, WAV file I/O, and
539<a href="avoiding_pi.html#nonBlockingAlgorithms">non-blocking FIFO</a>,
540which is largely independent of the Android platform.
541</dd>
542
Glenn Kasten963fd952013-04-18 17:26:23 -0700543<dt>client</dt>
544<dd>
545Usually same as application or app, but sometimes the "client" of
546AudioFlinger is actually a thread running within the mediaserver system
547process. An example of that is when playing media that is decoded by a
548MediaPlayer object.
549</dd>
550
551<dt>HAL</dt>
552<dd>
553Hardware Abstraction Layer. HAL is a generic term in Android. With
554respect to audio, it is a layer between AudioFlinger and the kernel
555device driver with a C API, which replaces the earlier C++ libaudio.
556</dd>
557
Glenn Kasten978bec82014-12-23 15:15:20 -0800558<dt>FastCapture</dt>
559<dd>
560A thread within AudioFlinger that sends audio data to lower latency "fast tracks"
561and drives the input device when configured for reduced latency.
562</dd>
563
Glenn Kasten963fd952013-04-18 17:26:23 -0700564<dt>FastMixer</dt>
565<dd>
Glenn Kasten978bec82014-12-23 15:15:20 -0800566A thread within AudioFlinger that receives and mixes audio data from lower latency "fast tracks"
567and drives the primary output device when configured for reduced latency.
Glenn Kasten963fd952013-04-18 17:26:23 -0700568</dd>
569
570<dt>fast track</dt>
571<dd>
Glenn Kasten978bec82014-12-23 15:15:20 -0800572An AudioTrack or AudioRecord client with lower latency but fewer features, on some devices and routes.
Glenn Kasten963fd952013-04-18 17:26:23 -0700573</dd>
574
575<dt>MediaPlayer</dt>
576<dd>
577A higher-level client API than AudioTrack, for playing either encoded
Clay Murphyc28f2372013-09-25 16:13:40 -0700578content, or content which includes multimedia audio and video tracks.
Glenn Kasten963fd952013-04-18 17:26:23 -0700579</dd>
580
Glenn Kasten298f3822013-06-12 17:17:36 -0700581<dt>media.log</dt>
582<dd>
583An AudioFlinger debugging feature, available in custom builds only,
584for logging audio events to a circular buffer where they can then be
585dumped retroactively when needed.
586</dd>
587
Glenn Kasten963fd952013-04-18 17:26:23 -0700588<dt>mediaserver</dt>
589<dd>
590An Android system process that contains a number of media-related
591services, including AudioFlinger.
592</dd>
593
594<dt>NBAIO</dt>
595<dd>
596An abstraction for "non-blocking" audio input/output ports used within
597AudioFlinger. The name can be misleading, as some implementations of
598the NBAIO API actually do support blocking. The key implementations of
599NBAIO are for pipes of various kinds.
600</dd>
601
602<dt>normal mixer</dt>
603<dd>
604A thread within AudioFlinger that services most full-featured
605AudioTrack clients, and either directly drives an output device or feeds
Clay Murphyc28f2372013-09-25 16:13:40 -0700606its sub-mix into FastMixer via a pipe.
Glenn Kasten963fd952013-04-18 17:26:23 -0700607</dd>
608
609<dt>OpenSL ES</dt>
610<dd>
Glenn Kasten978bec82014-12-23 15:15:20 -0800611An audio API standard by
612<a href="http://www.khronos.org/">The Khronos Group</a>. Android versions since
613API level 9 support a native audio API that is based on a subset of
614<a href="http://www.khronos.org/opensles/">OpenSL ES 1.0.1</a>.
Glenn Kasten963fd952013-04-18 17:26:23 -0700615</dd>
616
Glenn Kastenfdc7b7b2013-10-28 11:11:34 -0700617<dt>silent mode</dt>
618<dd>
619A user-settable feature to mute the phone ringer and notifications,
620without affecting media playback (music, videos, games) or alarms.
621</dd>
622
Glenn Kasten5df2d522013-09-27 11:50:35 -0700623<dt>SoundPool</dt>
624<dd>
625A higher-level client API than AudioTrack, used for playing sampled
626audio clips. It is useful for triggering UI feedback, game sounds, etc.
627The API is defined at
Clay Murphydc85c742014-09-10 15:10:03 -0700628<a href="http://developer.android.com/reference/android/media/SoundPool.html">android.media.SoundPool</a>.
Glenn Kasten5df2d522013-09-27 11:50:35 -0700629</dd>
Glenn Kasten5df2d522013-09-27 11:50:35 -0700630
631<dt>Stagefright</dt>
632<dd>
633See <a href="{@docRoot}devices/media.html">Media</a>.
634</dd>
635
Glenn Kasten963fd952013-04-18 17:26:23 -0700636<dt>StateQueue</dt>
637<dd>
638A module within AudioFlinger responsible for synchronizing state
639among threads. Whereas NBAIO is used to pass data, StateQueue is used
640to pass control information.
641</dd>
642
Glenn Kastenfdc7b7b2013-10-28 11:11:34 -0700643<dt>strategy</dt>
644<dd>
645A grouping of stream types with similar behavior, used by the audio policy service.
646</dd>
647
648<dt>stream type</dt>
649<dd>
650An enumeration that expresses a use case for audio output.
651The audio policy implementation uses the stream type, along with other parameters,
652to determine volume and routing decisions.
653Specific stream types are listed at
654<a href="http://developer.android.com/reference/android/media/AudioManager.html">android.media.AudioManager</a>.
655</dd>
656
Glenn Kasten298f3822013-06-12 17:17:36 -0700657<dt>tee sink</dt>
658<dd>
Glenn Kasten37784a52014-02-03 11:57:33 -0800659See the separate article on tee sink in
Clay Murphy714cd072014-12-01 13:07:52 -0800660<a href="debugging.html#teeSink">Audio Debugging</a>.
Glenn Kasten298f3822013-06-12 17:17:36 -0700661</dd>
662
Glenn Kasten963fd952013-04-18 17:26:23 -0700663<dt>tinyalsa</dt>
664<dd>
665A small user-mode API above ALSA kernel with BSD license, recommended
Clay Murphyc28f2372013-09-25 16:13:40 -0700666for use in HAL implementations.
Glenn Kasten963fd952013-04-18 17:26:23 -0700667</dd>
668
Glenn Kastenfdc7b7b2013-10-28 11:11:34 -0700669<dt>ToneGenerator</dt>
670<dd>
671A higher-level client API than AudioTrack, used for playing DTMF signals.
672See the Wikipedia article
Clay Murphydc85c742014-09-10 15:10:03 -0700673<a href="http://en.wikipedia.org/wiki/Dual-tone_multi-frequency_signaling">Dual-tone multi-frequency signaling</a>,
Glenn Kastenfdc7b7b2013-10-28 11:11:34 -0700674and the API definition at
Clay Murphydc85c742014-09-10 15:10:03 -0700675<a href="http://developer.android.com/reference/android/media/ToneGenerator.html">android.media.ToneGenerator</a>.
Glenn Kastenfdc7b7b2013-10-28 11:11:34 -0700676</dd>
677
Glenn Kasten963fd952013-04-18 17:26:23 -0700678<dt>track</dt>
679<dd>
Glenn Kastenff257d42014-11-10 16:29:03 -0800680An audio stream, controlled by the AudioTrack or AudioRecord API.
Glenn Kasten963fd952013-04-18 17:26:23 -0700681</dd>
682
Glenn Kastenfdc7b7b2013-10-28 11:11:34 -0700683<dt>volume attenuation curve</dt>
684<dd>
685A device-specific mapping from a generic volume index to a particular attenuation factor
686for a given output.
687</dd>
688
689<dt>volume index</dt>
690<dd>
691A unitless integer that expresses the desired relative volume of a stream.
692The volume-related APIs of
693<a href="http://developer.android.com/reference/android/media/AudioManager.html">android.media.AudioManager</a>
694operate in volume indices rather than absolute attenuation factors.
695</dd>
696
Glenn Kasten963fd952013-04-18 17:26:23 -0700697</dl>