Glenn Kasten | 963fd95 | 2013-04-18 17:26:23 -0700 | [diff] [blame] | 1 | page.title=Audio Terminology |
| 2 | @jd:body |
| 3 | |
Clay Murphy | bc92aea | 2014-10-16 10:13:18 -0700 | [diff] [blame] | 4 | <!-- |
Clay Murphy | 5d83ab4 | 2014-09-09 17:29:09 -0700 | [diff] [blame] | 5 | Copyright 2014 The Android Open Source Project |
Clay Murphy | bc92aea | 2014-10-16 10:13:18 -0700 | [diff] [blame] | 6 | |
| 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 Kasten | 963fd95 | 2013-04-18 17:26:23 -0700 | [diff] [blame] | 19 | <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> |
| 28 | This document provides a glossary of audio-related terminology, including |
| 29 | a list of widely used, generic terms and a list of terms that are specific |
| 30 | to Android. |
| 31 | </p> |
| 32 | |
| 33 | <h2 id="genericTerm">Generic Terms</h2> |
| 34 | |
| 35 | <p> |
| 36 | These are audio terms that are widely used, with their conventional meanings. |
| 37 | </p> |
| 38 | |
Glenn Kasten | 5df2d52 | 2013-09-27 11:50:35 -0700 | [diff] [blame] | 39 | <h3 id="digitalAudioTerms">Digital Audio</h3> |
| 40 | |
Glenn Kasten | 963fd95 | 2013-04-18 17:26:23 -0700 | [diff] [blame] | 41 | <dl> |
| 42 | |
Glenn Kasten | 298f382 | 2013-06-12 17:17:36 -0700 | [diff] [blame] | 43 | <dt>acoustics</dt> |
| 44 | <dd> |
| 45 | The study of the mechanical properties of sound, for example how the |
| 46 | physical placement of transducers such as speakers and microphones on |
| 47 | a device affects perceived audio quality. |
| 48 | </dd> |
| 49 | |
Glenn Kasten | 5df2d52 | 2013-09-27 11:50:35 -0700 | [diff] [blame] | 50 | <dt>attenuation</dt> |
| 51 | <dd> |
| 52 | A multiplicative factor less than or equal to 1.0, |
| 53 | applied to an audio signal to decrease the signal level. |
Glenn Kasten | 978bec8 | 2014-12-23 15:15:20 -0800 | [diff] [blame] | 54 | Compare to "gain." |
Glenn Kasten | 5df2d52 | 2013-09-27 11:50:35 -0700 | [diff] [blame] | 55 | </dd> |
| 56 | |
Glenn Kasten | 628654f | 2015-02-05 13:06:10 -0800 | [diff] [blame] | 57 | <dt>audiophile</dt> |
| 58 | <dd> |
| 59 | An <a href="http://en.wikipedia.org/wiki/Audiophile">audiophile</a> |
| 60 | is an individual who is concerned with a superior music |
| 61 | reproduction experience, especially someone willing to make tradeoffs |
| 62 | (of expense, component size, room design, etc.) beyond what an ordinary |
| 63 | person might choose. |
| 64 | </dd> |
| 65 | |
Glenn Kasten | 963fd95 | 2013-04-18 17:26:23 -0700 | [diff] [blame] | 66 | <dt>bits per sample or bit depth</dt> |
| 67 | <dd> |
| 68 | Number of bits of information per sample. |
| 69 | </dd> |
| 70 | |
| 71 | <dt>channel</dt> |
| 72 | <dd> |
| 73 | A single stream of audio information, usually corresponding to one |
| 74 | location of recording or playback. |
| 75 | </dd> |
| 76 | |
Glenn Kasten | 5df2d52 | 2013-09-27 11:50:35 -0700 | [diff] [blame] | 77 | <dt>downmixing</dt> |
| 78 | <dd> |
| 79 | To decrease the number of channels, e.g. from stereo to mono, or from 5.1 to stereo. |
| 80 | This can be accomplished by dropping some channels, mixing channels, or more advanced signal processing. |
| 81 | Simple mixing without attenuation or limiting has the potential for overflow and clipping. |
Glenn Kasten | 978bec8 | 2014-12-23 15:15:20 -0800 | [diff] [blame] | 82 | Compare to "upmixing." |
Glenn Kasten | fdc7b7b | 2013-10-28 11:11:34 -0700 | [diff] [blame] | 83 | </dd> |
| 84 | |
Glenn Kasten | 628654f | 2015-02-05 13:06:10 -0800 | [diff] [blame] | 85 | <dt>DSD</dt> |
| 86 | <dd> |
Clay Murphy | c9ea000 | 2015-02-17 14:57:14 -0800 | [diff] [blame] | 87 | Direct Stream Digital, a proprietary audio encoding based on |
Glenn Kasten | 628654f | 2015-02-05 13:06:10 -0800 | [diff] [blame] | 88 | <a href="http://en.wikipedia.org/wiki/Pulse-density_modulation">pulse-density modulation</a>. |
| 89 | Whereas PCM encodes a waveform as a sequence of individual audio samples of multiple bits, |
| 90 | DSD encodes a waveform as a sequence of bits at a very high sample rate. |
| 91 | For DSD, there is no concept of "samples" in the conventional PCM sense. |
| 92 | Both PCM and DSD represent multiple channels by independent sequences. |
| 93 | DSD is better suited to content distribution than as an internal representation for processing, |
| 94 | as it can be difficult to apply traditional DSP algorithms to DSD. |
| 95 | DSD is used in |
| 96 | <a href="http://en.wikipedia.org/wiki/Super_Audio_CD">Super Audio CD</a> |
Clay Murphy | c9ea000 | 2015-02-17 14:57:14 -0800 | [diff] [blame] | 97 | (SACD) and in DSD over PCM (DoP) for USB. |
Glenn Kasten | 628654f | 2015-02-05 13:06:10 -0800 | [diff] [blame] | 98 | See the Wikipedia article |
Clay Murphy | a7ccc7d | 2015-02-20 13:48:37 -0800 | [diff] [blame] | 99 | <a href="http://en.wikipedia.org/wiki/Direct_Stream_Digital">Digital Stream Digital</a> |
Glenn Kasten | 628654f | 2015-02-05 13:06:10 -0800 | [diff] [blame] | 100 | for more information. |
| 101 | </dd> |
| 102 | |
Glenn Kasten | fdc7b7b | 2013-10-28 11:11:34 -0700 | [diff] [blame] | 103 | <dt>duck</dt> |
| 104 | <dd> |
| 105 | To temporarily reduce the volume of one stream, when another stream |
| 106 | becomes active. For example, if music is playing and a notification arrives, |
| 107 | then the music stream could be ducked while the notification plays. |
Glenn Kasten | 978bec8 | 2014-12-23 15:15:20 -0800 | [diff] [blame] | 108 | Compare to "mute." |
Glenn Kasten | fdc7b7b | 2013-10-28 11:11:34 -0700 | [diff] [blame] | 109 | </dd> |
Glenn Kasten | 5df2d52 | 2013-09-27 11:50:35 -0700 | [diff] [blame] | 110 | |
Glenn Kasten | e158b8e | 2015-02-06 09:48:11 -0800 | [diff] [blame] | 111 | <dt>FIFO</dt> |
| 112 | <dd> |
| 113 | A hardware module or software data structure that implements |
| 114 | <a href="http://en.wikipedia.org/wiki/FIFO">First In, First Out</a> |
| 115 | queueing of data. In the context of audio, the data stored in the queue |
| 116 | are typically audio frames. A FIFO can be implemented by a |
| 117 | <a href="http://en.wikipedia.org/wiki/Circular_buffer">circular buffer</a>. |
| 118 | </dd> |
| 119 | |
Glenn Kasten | 963fd95 | 2013-04-18 17:26:23 -0700 | [diff] [blame] | 120 | <dt>frame</dt> |
| 121 | <dd> |
| 122 | A set of samples, one per channel, at a point in time. |
| 123 | </dd> |
| 124 | |
| 125 | <dt>frames per buffer</dt> |
| 126 | <dd> |
| 127 | The number of frames handed from one module to the next at once; |
| 128 | for example the audio HAL interface uses this concept. |
| 129 | </dd> |
| 130 | |
Glenn Kasten | 5df2d52 | 2013-09-27 11:50:35 -0700 | [diff] [blame] | 131 | <dt>gain</dt> |
| 132 | <dd> |
| 133 | A multiplicative factor greater than or equal to 1.0, |
| 134 | applied to an audio signal to increase the signal level. |
Glenn Kasten | 978bec8 | 2014-12-23 15:15:20 -0800 | [diff] [blame] | 135 | Compare to "attenuation." |
Glenn Kasten | 5df2d52 | 2013-09-27 11:50:35 -0700 | [diff] [blame] | 136 | </dd> |
| 137 | |
Glenn Kasten | 628654f | 2015-02-05 13:06:10 -0800 | [diff] [blame] | 138 | <dt>HD audio</dt> |
| 139 | <dd> |
Clay Murphy | c9ea000 | 2015-02-17 14:57:14 -0800 | [diff] [blame] | 140 | High-Definition audio, a synonym for "high-resolution audio." |
Glenn Kasten | 628654f | 2015-02-05 13:06:10 -0800 | [diff] [blame] | 141 | Not to be confused with Intel High Definition Audio. |
| 142 | </dd> |
| 143 | |
Glenn Kasten | 298f382 | 2013-06-12 17:17:36 -0700 | [diff] [blame] | 144 | <dt>Hz</dt> |
| 145 | <dd> |
| 146 | The units for sample rate or frame rate. |
| 147 | </dd> |
| 148 | |
Glenn Kasten | 628654f | 2015-02-05 13:06:10 -0800 | [diff] [blame] | 149 | <dt>high-resolution audio</dt> |
| 150 | <dd> |
| 151 | There is no standard definition, but high-resolution usually means any representation |
| 152 | with greater bit-depth and sample rate than CDs (which are stereo 16-bit PCM at 44.1 kHz), |
| 153 | and with no lossy data compression applied. |
Glenn Kasten | e064b46 | 2015-02-11 08:53:52 -0800 | [diff] [blame] | 154 | Equivalent to "HD audio." See the Wikipedia article |
Glenn Kasten | 628654f | 2015-02-05 13:06:10 -0800 | [diff] [blame] | 155 | <a href="http://en.wikipedia.org/wiki/High-resolution_audio">high-resolution audio</a> |
| 156 | for more information. |
| 157 | </dd> |
| 158 | |
Glenn Kasten | 298f382 | 2013-06-12 17:17:36 -0700 | [diff] [blame] | 159 | <dt>latency</dt> |
| 160 | <dd> |
| 161 | Time delay as a signal passes through a system. |
| 162 | </dd> |
| 163 | |
Glenn Kasten | 628654f | 2015-02-05 13:06:10 -0800 | [diff] [blame] | 164 | <dt>lossless</dt> |
| 165 | <dd> |
| 166 | A <a href="http://en.wikipedia.org/wiki/Lossless_compression">lossless data compression</a> |
| 167 | algorithm preserves bit accuracy across encoding and decoding. |
| 168 | The result of decoding any previously encoded data is equivalent to the original data. |
| 169 | Examples of lossless audio content distribution formats include |
| 170 | <a href="http://en.wikipedia.org/wiki/Compact_disc">CDs</a>, PCM within |
| 171 | <a href="http://en.wikipedia.org/wiki/WAV">WAV</a>, and |
| 172 | <a href="http://en.wikipedia.org/wiki/FLAC">FLAC</a>. |
| 173 | Note that the authoring process may reduce the bit depth or sample rate from that of the |
| 174 | <a href="http://en.wikipedia.org/wiki/Audio_mastering">masters</a>. |
| 175 | Distribution formats that preserve the resolution and bit accuracy of masters |
Glenn Kasten | e064b46 | 2015-02-11 08:53:52 -0800 | [diff] [blame] | 176 | are the subject of "high-resolution audio." |
Glenn Kasten | 628654f | 2015-02-05 13:06:10 -0800 | [diff] [blame] | 177 | </dd> |
| 178 | |
Glenn Kasten | e158b8e | 2015-02-06 09:48:11 -0800 | [diff] [blame] | 179 | <dt>lossy</dt> |
| 180 | <dd> |
| 181 | A <a href="http://en.wikipedia.org/wiki/Lossy_compression">lossy data compression</a> |
| 182 | algorithm attempts to preserve the most important features of media across |
| 183 | encoding and decoding. The result of decoding any previously encoded |
Clay Murphy | c9ea000 | 2015-02-17 14:57:14 -0800 | [diff] [blame] | 184 | data is perceptually similar to the original data, but it is not identical. |
Glenn Kasten | e158b8e | 2015-02-06 09:48:11 -0800 | [diff] [blame] | 185 | Examples of lossy audio compression algorithms include MP3 and AAC. |
| 186 | As analog values are from a continuous domain, whereas digital values are discrete, |
| 187 | ADC and DAC are lossy conversions with respect to amplitude. See also "transparency." |
| 188 | </dd> |
| 189 | |
Glenn Kasten | 963fd95 | 2013-04-18 17:26:23 -0700 | [diff] [blame] | 190 | <dt>mono</dt> |
| 191 | <dd> |
| 192 | One channel. |
| 193 | </dd> |
| 194 | |
Glenn Kasten | 5df2d52 | 2013-09-27 11:50:35 -0700 | [diff] [blame] | 195 | <dt>multichannel</dt> |
| 196 | <dd> |
Glenn Kasten | e064b46 | 2015-02-11 08:53:52 -0800 | [diff] [blame] | 197 | See "surround sound." |
Glenn Kasten | 5df2d52 | 2013-09-27 11:50:35 -0700 | [diff] [blame] | 198 | Strictly, since stereo is more than one channel, it is also "multi" channel. |
| 199 | But that usage would be confusing. |
| 200 | </dd> |
| 201 | |
Glenn Kasten | fdc7b7b | 2013-10-28 11:11:34 -0700 | [diff] [blame] | 202 | <dt>mute</dt> |
| 203 | <dd> |
| 204 | To (temporarily) force volume to be zero, independently from the usual volume controls. |
| 205 | </dd> |
| 206 | |
Glenn Kasten | 978bec8 | 2014-12-23 15:15:20 -0800 | [diff] [blame] | 207 | <dt>overrun</dt> |
| 208 | <dd> |
| 209 | An audible <a href="http://en.wikipedia.org/wiki/Glitch">glitch</a> caused by failure |
| 210 | to accept supplied data in sufficient time. |
| 211 | See Wikipedia article <a href="http://en.wikipedia.org/wiki/Buffer_underrun">buffer underrun</a> |
| 212 | [sic; the article for "buffer overrun" describes an unrelated failure]. |
| 213 | Compare to "underrun." |
| 214 | </dd> |
| 215 | |
| 216 | <dt>panning</dt> |
| 217 | <dd> |
| 218 | To direct a signal to a desired position within a stereo or multi-channel field. |
| 219 | </dd> |
| 220 | |
Glenn Kasten | 5df2d52 | 2013-09-27 11:50:35 -0700 | [diff] [blame] | 221 | <dt>PCM</dt> |
| 222 | <dd> |
| 223 | Pulse Code Modulation, the most common low-level encoding of digital audio. |
| 224 | The audio signal is sampled at a regular interval, called the sample rate, |
| 225 | and then quantized to discrete values within a particular range depending on the bit depth. |
| 226 | For example, for 16-bit PCM, the sample values are integers between -32768 and +32767. |
| 227 | </dd> |
| 228 | |
Glenn Kasten | fdc7b7b | 2013-10-28 11:11:34 -0700 | [diff] [blame] | 229 | <dt>ramp</dt> |
| 230 | <dd> |
| 231 | To gradually increase or decrease the level of a particular audio parameter, |
| 232 | for example volume or the strength of an effect. |
| 233 | A volume ramp is commonly applied when pausing and resuming music, to avoid a hard audible transition. |
| 234 | </dd> |
| 235 | |
Glenn Kasten | 963fd95 | 2013-04-18 17:26:23 -0700 | [diff] [blame] | 236 | <dt>sample</dt> |
| 237 | <dd> |
| 238 | A number representing the audio value for a single channel at a point in time. |
| 239 | </dd> |
| 240 | |
| 241 | <dt>sample rate or frame rate</dt> |
| 242 | <dd> |
| 243 | Number of frames per second; |
| 244 | note that "frame rate" is thus more accurate, |
Clay Murphy | c28f237 | 2013-09-25 16:13:40 -0700 | [diff] [blame] | 245 | but "sample rate" is conventionally used to mean "frame rate." |
Glenn Kasten | 963fd95 | 2013-04-18 17:26:23 -0700 | [diff] [blame] | 246 | </dd> |
| 247 | |
Glenn Kasten | fdc7b7b | 2013-10-28 11:11:34 -0700 | [diff] [blame] | 248 | <dt>sonification</dt> |
| 249 | <dd> |
| 250 | The use of sound to express feedback or information, |
| 251 | for example touch sounds and keyboard sounds. |
| 252 | </dd> |
| 253 | |
Glenn Kasten | 963fd95 | 2013-04-18 17:26:23 -0700 | [diff] [blame] | 254 | <dt>stereo</dt> |
| 255 | <dd> |
| 256 | Two channels. |
| 257 | </dd> |
| 258 | |
Glenn Kasten | 5df2d52 | 2013-09-27 11:50:35 -0700 | [diff] [blame] | 259 | <dt>stereo widening</dt> |
| 260 | <dd> |
| 261 | An effect applied to a stereo signal, to make another stereo signal which sounds fuller and richer. |
| 262 | The effect can also be applied to a mono signal, in which case it is a type of upmixing. |
| 263 | </dd> |
| 264 | |
| 265 | <dt>surround sound</dt> |
| 266 | <dd> |
| 267 | Various techniques for increasing the ability of a listener to perceive |
| 268 | sound position beyond stereo left and right. |
| 269 | </dd> |
| 270 | |
Glenn Kasten | e158b8e | 2015-02-06 09:48:11 -0800 | [diff] [blame] | 271 | <dt>transparency</dt> |
| 272 | <dd> |
| 273 | The ideal result of lossy data compression, as stated in the |
Clay Murphy | c9ea000 | 2015-02-17 14:57:14 -0800 | [diff] [blame] | 274 | <a href="http://en.wikipedia.org/wiki/Transparency_%28data_compression%29">Transparency</a> Wikipedia article. |
Glenn Kasten | e158b8e | 2015-02-06 09:48:11 -0800 | [diff] [blame] | 275 | A lossy data conversion is said to be transparent if it is perceptually indistinguishable from the |
| 276 | original by a human subject. |
| 277 | </dd> |
| 278 | |
Glenn Kasten | 978bec8 | 2014-12-23 15:15:20 -0800 | [diff] [blame] | 279 | <dt>underrun</dt> |
| 280 | <dd> |
| 281 | An audible <a href="http://en.wikipedia.org/wiki/Glitch">glitch</a> caused by failure |
| 282 | to supply needed data in sufficient time. |
| 283 | See Wikipedia article <a href="http://en.wikipedia.org/wiki/Buffer_underrun">buffer underrun</a>. |
| 284 | Compare to "overrun." |
| 285 | </dd> |
| 286 | |
Glenn Kasten | 5df2d52 | 2013-09-27 11:50:35 -0700 | [diff] [blame] | 287 | <dt>upmixing</dt> |
| 288 | <dd> |
| 289 | To increase the number of channels, e.g. from mono to stereo, or from stereo to surround sound. |
| 290 | This can be accomplished by duplication, panning, or more advanced signal processing. |
Glenn Kasten | 978bec8 | 2014-12-23 15:15:20 -0800 | [diff] [blame] | 291 | Compare to "downmixing." |
Glenn Kasten | 795a9de | 2014-01-24 08:58:56 -0800 | [diff] [blame] | 292 | </dd> |
Glenn Kasten | 963fd95 | 2013-04-18 17:26:23 -0700 | [diff] [blame] | 293 | |
Glenn Kasten | 5df2d52 | 2013-09-27 11:50:35 -0700 | [diff] [blame] | 294 | <dt>virtualizer</dt> |
| 295 | <dd> |
| 296 | An effect that attempts to spatialize audio channels, such as trying to |
| 297 | simulate more speakers, or give the illusion that various sound sources have position. |
| 298 | </dd> |
| 299 | |
Glenn Kasten | fdc7b7b | 2013-10-28 11:11:34 -0700 | [diff] [blame] | 300 | <dt>volume</dt> |
| 301 | <dd> |
| 302 | Loudness, the subjective strength of an audio signal. |
| 303 | </dd> |
| 304 | |
Glenn Kasten | 795a9de | 2014-01-24 08:58:56 -0800 | [diff] [blame] | 305 | </dl> |
| 306 | |
Glenn Kasten | 5df2d52 | 2013-09-27 11:50:35 -0700 | [diff] [blame] | 307 | <h3 id="hardwareTerms">Hardware and Accessories</h3> |
| 308 | |
| 309 | <p> |
| 310 | These terms are related to audio hardware and accessories. |
| 311 | </p> |
| 312 | |
| 313 | <h4 id="interDeviceTerms">Inter-device interconnect</h4> |
| 314 | |
| 315 | <p> |
| 316 | These technologies connect audio and video components between devices, |
| 317 | and are readily visible at the external connectors. The HAL implementor |
| 318 | may need to be aware of these, as well as the end user. |
| 319 | </p> |
| 320 | |
| 321 | <dl> |
| 322 | |
| 323 | <dt>Bluetooth</dt> |
| 324 | <dd> |
| 325 | A short range wireless technology. |
| 326 | The major audio-related |
Clay Murphy | dc85c74 | 2014-09-10 15:10:03 -0700 | [diff] [blame] | 327 | <a href="http://en.wikipedia.org/wiki/Bluetooth_profile">Bluetooth profiles</a> |
Glenn Kasten | 5df2d52 | 2013-09-27 11:50:35 -0700 | [diff] [blame] | 328 | and |
Clay Murphy | dc85c74 | 2014-09-10 15:10:03 -0700 | [diff] [blame] | 329 | <a href="http://en.wikipedia.org/wiki/Bluetooth_protocols">Bluetooth protocols</a> |
Glenn Kasten | 5df2d52 | 2013-09-27 11:50:35 -0700 | [diff] [blame] | 330 | are described at these Wikipedia articles: |
| 331 | |
| 332 | <ul> |
| 333 | |
Clay Murphy | dc85c74 | 2014-09-10 15:10:03 -0700 | [diff] [blame] | 334 | <li><a href="http://en.wikipedia.org/wiki/Bluetooth_profile#Advanced_Audio_Distribution_Profile_.28A2DP.29">A2DP</a> |
Glenn Kasten | 5df2d52 | 2013-09-27 11:50:35 -0700 | [diff] [blame] | 335 | for music |
| 336 | </li> |
| 337 | |
Clay Murphy | dc85c74 | 2014-09-10 15:10:03 -0700 | [diff] [blame] | 338 | <li><a href="http://en.wikipedia.org/wiki/Bluetooth_protocols#Synchronous_connection-oriented_.28SCO.29_link">SCO</a> |
Glenn Kasten | 5df2d52 | 2013-09-27 11:50:35 -0700 | [diff] [blame] | 339 | for telephony |
| 340 | </li> |
| 341 | |
Glenn Kasten | 978bec8 | 2014-12-23 15:15:20 -0800 | [diff] [blame] | 342 | <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> |
| 343 | </li> |
| 344 | |
Glenn Kasten | 5df2d52 | 2013-09-27 11:50:35 -0700 | [diff] [blame] | 345 | </ul> |
| 346 | |
| 347 | </dd> |
| 348 | |
| 349 | <dt>DisplayPort</dt> |
| 350 | <dd> |
| 351 | Digital display interface by VESA. |
| 352 | </dd> |
| 353 | |
| 354 | <dt>HDMI</dt> |
| 355 | <dd> |
| 356 | High-Definition Multimedia Interface, an interface for transferring |
| 357 | audio and video data. For mobile devices, either a micro-HDMI (type D) or MHL connector is used. |
| 358 | </dd> |
| 359 | |
Glenn Kasten | e158b8e | 2015-02-06 09:48:11 -0800 | [diff] [blame] | 360 | <dt>Intel HDA</dt> |
| 361 | <dd> |
| 362 | <a href="http://en.wikipedia.org/wiki/Intel_High_Definition_Audio">Intel High Definition Audio</a> |
| 363 | (commonly shortened to HDA) is a specification for, among other things, a front-panel connector. |
| 364 | Not to be confused with generic "high-definition audio" or "high-resolution audio." |
| 365 | </dd> |
| 366 | |
Glenn Kasten | 5df2d52 | 2013-09-27 11:50:35 -0700 | [diff] [blame] | 367 | <dt>MHL</dt> |
| 368 | <dd> |
| 369 | Mobile High-Definition Link is a mobile audio/video interface, often |
| 370 | over micro-USB connector. |
| 371 | </dd> |
| 372 | |
| 373 | <dt>phone connector</dt> |
| 374 | <dd> |
| 375 | A mini or sub-mini phone connector |
| 376 | connects a device to wired headphones, headset, or line-level amplifier. |
| 377 | </dd> |
| 378 | |
| 379 | <dt>SlimPort</dt> |
| 380 | <dd> |
| 381 | An adapter from micro-USB to HDMI. |
| 382 | </dd> |
| 383 | |
| 384 | <dt>S/PDIF</dt> |
| 385 | <dd> |
| 386 | Sony/Philips Digital Interface Format is an interconnect for uncompressed PCM. |
Clay Murphy | dc85c74 | 2014-09-10 15:10:03 -0700 | [diff] [blame] | 387 | See Wikipedia article <a href="http://en.wikipedia.org/wiki/S/PDIF">S/PDIF</a>. |
Glenn Kasten | 5df2d52 | 2013-09-27 11:50:35 -0700 | [diff] [blame] | 388 | </dd> |
| 389 | |
Glenn Kasten | e158b8e | 2015-02-06 09:48:11 -0800 | [diff] [blame] | 390 | <dt>Thunderbolt</dt> |
| 391 | <dd> |
| 392 | <a href="http://en.wikipedia.org/wiki/Thunderbolt_%28interface%29">Thunderbolt</a> |
| 393 | is a multimedia interface that competes with USB and HDMI for connecting to high-end peripherals. |
| 394 | </dd> |
| 395 | |
Glenn Kasten | 5df2d52 | 2013-09-27 11:50:35 -0700 | [diff] [blame] | 396 | <dt>USB</dt> |
| 397 | <dd> |
| 398 | Universal Serial Bus. |
Clay Murphy | dc85c74 | 2014-09-10 15:10:03 -0700 | [diff] [blame] | 399 | See Wikipedia article <a href="http://en.wikipedia.org/wiki/USB">USB</a>. |
Glenn Kasten | 5df2d52 | 2013-09-27 11:50:35 -0700 | [diff] [blame] | 400 | </dd> |
| 401 | |
| 402 | </dl> |
| 403 | |
| 404 | <h4 id="intraDeviceTerms">Intra-device interconnect</h4> |
| 405 | |
| 406 | <p> |
| 407 | These technologies connect internal audio components within a given |
| 408 | device, and are not visible without disassembling the device. The HAL |
| 409 | implementor may need to be aware of these, but not the end user. |
| 410 | </p> |
| 411 | |
Glenn Kasten | e158b8e | 2015-02-06 09:48:11 -0800 | [diff] [blame] | 412 | <p> |
Glenn Kasten | 5df2d52 | 2013-09-27 11:50:35 -0700 | [diff] [blame] | 413 | See these Wikipedia articles: |
Glenn Kasten | e158b8e | 2015-02-06 09:48:11 -0800 | [diff] [blame] | 414 | </p> |
Glenn Kasten | 5df2d52 | 2013-09-27 11:50:35 -0700 | [diff] [blame] | 415 | <ul> |
Clay Murphy | dc85c74 | 2014-09-10 15:10:03 -0700 | [diff] [blame] | 416 | <li><a href="http://en.wikipedia.org/wiki/General-purpose_input/output">GPIO</a></li> |
Glenn Kasten | 978bec8 | 2014-12-23 15:15:20 -0800 | [diff] [blame] | 417 | <li><a href="http://en.wikipedia.org/wiki/I%C2%B2C">I²C</a>, for control channel</li> |
| 418 | <li><a href="http://en.wikipedia.org/wiki/I%C2%B2S">I²S</a>, for audio data</li> |
Clay Murphy | dc85c74 | 2014-09-10 15:10:03 -0700 | [diff] [blame] | 419 | <li><a href="http://en.wikipedia.org/wiki/McASP">McASP</a></li> |
| 420 | <li><a href="http://en.wikipedia.org/wiki/SLIMbus">SLIMbus</a></li> |
| 421 | <li><a href="http://en.wikipedia.org/wiki/Serial_Peripheral_Interface_Bus">SPI</a></li> |
Glenn Kasten | 5df2d52 | 2013-09-27 11:50:35 -0700 | [diff] [blame] | 422 | </ul> |
| 423 | |
| 424 | <h3 id="signalTerms">Audio Signal Path</h3> |
| 425 | |
| 426 | <p> |
| 427 | These terms are related to the signal path that audio data follows from |
| 428 | an application to the transducer, or vice-versa. |
| 429 | </p> |
| 430 | |
Glenn Kasten | 795a9de | 2014-01-24 08:58:56 -0800 | [diff] [blame] | 431 | <dl> |
| 432 | |
Glenn Kasten | 5df2d52 | 2013-09-27 11:50:35 -0700 | [diff] [blame] | 433 | <dt>ADC</dt> |
| 434 | <dd> |
| 435 | Analog to digital converter, a module that converts an analog signal |
| 436 | (continuous in both time and amplitude) to a digital signal (discrete in |
| 437 | both time and amplitude). Conceptually, an ADC consists of a periodic |
| 438 | sample-and-hold followed by a quantizer, although it does not have to |
| 439 | be implemented that way. An ADC is usually preceded by a low-pass filter |
| 440 | to remove any high frequency components that are not representable using |
| 441 | the desired sample rate. See Wikipedia article |
Glenn Kasten | ff257d4 | 2014-11-10 16:29:03 -0800 | [diff] [blame] | 442 | <a href="http://en.wikipedia.org/wiki/Analog-to-digital_converter">Analog-to-digital converter</a>. |
Glenn Kasten | 5df2d52 | 2013-09-27 11:50:35 -0700 | [diff] [blame] | 443 | </dd> |
| 444 | |
| 445 | <dt>AP</dt> |
| 446 | <dd> |
| 447 | Application processor, the main general-purpose computer on a mobile device. |
| 448 | </dd> |
| 449 | |
| 450 | <dt>codec</dt> |
| 451 | <dd> |
| 452 | Coder-decoder, a module that encodes and/or decodes an audio signal |
| 453 | from one representation to another. Typically this is analog to PCM, or PCM to analog. |
| 454 | Strictly, the term "codec" is reserved for modules that both encode and decode, |
| 455 | however it can also more loosely refer to only one of these. |
| 456 | See Wikipedia article |
Clay Murphy | dc85c74 | 2014-09-10 15:10:03 -0700 | [diff] [blame] | 457 | <a href="http://en.wikipedia.org/wiki/Audio_codec">Audio codec</a>. |
Glenn Kasten | 5df2d52 | 2013-09-27 11:50:35 -0700 | [diff] [blame] | 458 | </dd> |
| 459 | |
| 460 | <dt>DAC</dt> |
| 461 | <dd> |
| 462 | Digital to analog converter, a module that converts a digital signal |
| 463 | (discrete in both time and amplitude) to an analog signal |
| 464 | (continuous in both time and amplitude). A DAC is usually followed by |
| 465 | a low-pass filter to remove any high frequency components introduced |
| 466 | by digital quantization. |
| 467 | See Wikipedia article |
Clay Murphy | dc85c74 | 2014-09-10 15:10:03 -0700 | [diff] [blame] | 468 | <a href="http://en.wikipedia.org/wiki/Digital-to-analog_converter">Digital-to-analog converter</a>. |
Glenn Kasten | 5df2d52 | 2013-09-27 11:50:35 -0700 | [diff] [blame] | 469 | </dd> |
| 470 | |
| 471 | <dt>DSP</dt> |
| 472 | <dd> |
| 473 | Digital Signal Processor, an optional component which is typically located |
| 474 | after the application processor (for output), or before the application processor (for input). |
| 475 | The primary purpose of a DSP is to off-load the application processor, |
| 476 | and provide signal processing features at a lower power cost. |
| 477 | </dd> |
| 478 | |
| 479 | <dt>PDM</dt> |
| 480 | <dd> |
| 481 | Pulse-density modulation |
| 482 | is a form of modulation used to represent an analog signal by a digital signal, |
| 483 | where the relative density of 1s versus 0s indicates the signal level. |
| 484 | It is commonly used by digital to analog converters. |
| 485 | See Wikipedia article |
Clay Murphy | dc85c74 | 2014-09-10 15:10:03 -0700 | [diff] [blame] | 486 | <a href="http://en.wikipedia.org/wiki/Pulse-density_modulation">Pulse-density modulation</a>. |
Glenn Kasten | 5df2d52 | 2013-09-27 11:50:35 -0700 | [diff] [blame] | 487 | </dd> |
| 488 | |
| 489 | <dt>PWM</dt> |
| 490 | <dd> |
| 491 | Pulse-width modulation |
| 492 | is a form of modulation used to represent an analog signal by a digital signal, |
| 493 | where the relative width of a digital pulse indicates the signal level. |
| 494 | It is commonly used by analog to digital converters. |
| 495 | See Wikipedia article |
Clay Murphy | dc85c74 | 2014-09-10 15:10:03 -0700 | [diff] [blame] | 496 | <a href="http://en.wikipedia.org/wiki/Pulse-width_modulation">Pulse-width modulation</a>. |
Glenn Kasten | 5df2d52 | 2013-09-27 11:50:35 -0700 | [diff] [blame] | 497 | </dd> |
| 498 | |
Glenn Kasten | 978bec8 | 2014-12-23 15:15:20 -0800 | [diff] [blame] | 499 | <dt>transducer</dt> |
| 500 | <dd> |
| 501 | A transducer converts variations in physical "real-world" quantities to electrical signals. |
| 502 | In audio, the physical quantity is sound pressure, |
| 503 | and the transducers are the loudspeaker and microphone. |
| 504 | See Wikipedia article |
| 505 | <a href="http://en.wikipedia.org/wiki/Transducer">Transducer</a>. |
| 506 | </dd> |
| 507 | |
Glenn Kasten | 795a9de | 2014-01-24 08:58:56 -0800 | [diff] [blame] | 508 | </dl> |
Glenn Kasten | 5df2d52 | 2013-09-27 11:50:35 -0700 | [diff] [blame] | 509 | |
Clay Murphy | 5d83ab4 | 2014-09-09 17:29:09 -0700 | [diff] [blame] | 510 | <h3 id="srcTerms">Sample Rate Conversion</h3> |
| 511 | |
| 512 | <dl> |
| 513 | |
| 514 | <dt>downsample</dt> |
| 515 | <dd>To resample, where sink sample rate < source sample rate.</dd> |
| 516 | |
| 517 | <dt>Nyquist frequency</dt> |
| 518 | <dd> |
| 519 | The Nyquist frequency, equal to 1/2 of a given sample rate, is the |
| 520 | maximum frequency component that can be represented by a discretized |
| 521 | signal at that sample rate. For example, the human hearing range is |
| 522 | typically assumed to extend up to approximately 20 kHz, and so a digital |
| 523 | audio signal must have a sample rate of at least 40 kHz to represent that |
| 524 | range. In practice, sample rates of 44.1 kHz and 48 kHz are commonly |
| 525 | used, with Nyquist frequencies of 22.05 kHz and 24 kHz respectively. |
| 526 | See |
Glenn Kasten | ff257d4 | 2014-11-10 16:29:03 -0800 | [diff] [blame] | 527 | <a href="http://en.wikipedia.org/wiki/Nyquist_frequency">Nyquist frequency</a> |
Clay Murphy | 5d83ab4 | 2014-09-09 17:29:09 -0700 | [diff] [blame] | 528 | and |
Glenn Kasten | ff257d4 | 2014-11-10 16:29:03 -0800 | [diff] [blame] | 529 | <a href="http://en.wikipedia.org/wiki/Hearing_range">Hearing range</a> |
Clay Murphy | 5d83ab4 | 2014-09-09 17:29:09 -0700 | [diff] [blame] | 530 | for more information. |
| 531 | </dd> |
| 532 | |
| 533 | <dt>resampler</dt> |
| 534 | <dd>Synonym for sample rate converter.</dd> |
| 535 | |
| 536 | <dt>resampling</dt> |
| 537 | <dd>The process of converting sample rate.</dd> |
| 538 | |
| 539 | <dt>sample rate converter</dt> |
| 540 | <dd>A module that resamples.</dd> |
| 541 | |
| 542 | <dt>sink</dt> |
| 543 | <dd>The output of a resampler.</dd> |
| 544 | |
| 545 | <dt>source</dt> |
| 546 | <dd>The input to a resampler.</dd> |
| 547 | |
| 548 | <dt>upsample</dt> |
| 549 | <dd>To resample, where sink sample rate > source sample rate.</dd> |
| 550 | |
| 551 | </dl> |
| 552 | |
Glenn Kasten | 963fd95 | 2013-04-18 17:26:23 -0700 | [diff] [blame] | 553 | <h2 id="androidSpecificTerms">Android-Specific Terms</h2> |
| 554 | |
| 555 | <p> |
Clay Murphy | c28f237 | 2013-09-25 16:13:40 -0700 | [diff] [blame] | 556 | These are terms specific to the Android audio framework, or that |
Glenn Kasten | 963fd95 | 2013-04-18 17:26:23 -0700 | [diff] [blame] | 557 | may have a special meaning within Android beyond their general meaning. |
| 558 | </p> |
| 559 | |
| 560 | <dl> |
| 561 | |
| 562 | <dt>ALSA</dt> |
| 563 | <dd> |
| 564 | Advanced Linux Sound Architecture. As the name suggests, it is an audio |
| 565 | framework primarily for Linux, but it has influenced other systems. |
| 566 | See Wikipedia article |
Clay Murphy | dc85c74 | 2014-09-10 15:10:03 -0700 | [diff] [blame] | 567 | <a href="http://en.wikipedia.org/wiki/Advanced_Linux_Sound_Architecture">ALSA</a> |
Glenn Kasten | 963fd95 | 2013-04-18 17:26:23 -0700 | [diff] [blame] | 568 | for the general definition. As used within Android, it refers primarily |
| 569 | to the kernel audio framework and drivers, not to the user-mode API. See |
| 570 | tinyalsa. |
| 571 | </dd> |
| 572 | |
Glenn Kasten | e158b8e | 2015-02-06 09:48:11 -0800 | [diff] [blame] | 573 | <dt>audio device</dt> |
| 574 | <dd> |
Clay Murphy | c9ea000 | 2015-02-17 14:57:14 -0800 | [diff] [blame] | 575 | Any audio I/O end-point that is backed by a HAL implementation. |
Glenn Kasten | e158b8e | 2015-02-06 09:48:11 -0800 | [diff] [blame] | 576 | </dd> |
| 577 | |
Glenn Kasten | 298f382 | 2013-06-12 17:17:36 -0700 | [diff] [blame] | 578 | <dt>AudioEffect</dt> |
| 579 | <dd> |
| 580 | An API and implementation framework for output (post-processing) effects |
| 581 | and input (pre-processing) effects. The API is defined at |
Clay Murphy | dc85c74 | 2014-09-10 15:10:03 -0700 | [diff] [blame] | 582 | <a href="http://developer.android.com/reference/android/media/audiofx/AudioEffect.html">android.media.audiofx.AudioEffect</a>. |
Glenn Kasten | 298f382 | 2013-06-12 17:17:36 -0700 | [diff] [blame] | 583 | </dd> |
| 584 | |
Glenn Kasten | 963fd95 | 2013-04-18 17:26:23 -0700 | [diff] [blame] | 585 | <dt>AudioFlinger</dt> |
| 586 | <dd> |
| 587 | The sound server implementation for Android. AudioFlinger |
| 588 | runs within the mediaserver process. See Wikipedia article |
Clay Murphy | dc85c74 | 2014-09-10 15:10:03 -0700 | [diff] [blame] | 589 | <a href="http://en.wikipedia.org/wiki/Sound_server">Sound server</a> |
Glenn Kasten | 963fd95 | 2013-04-18 17:26:23 -0700 | [diff] [blame] | 590 | for the generic definition. |
| 591 | </dd> |
| 592 | |
Glenn Kasten | fdc7b7b | 2013-10-28 11:11:34 -0700 | [diff] [blame] | 593 | <dt>audio focus</dt> |
| 594 | <dd> |
| 595 | A set of APIs for managing audio interactions across multiple independent apps. |
| 596 | See <a href="http://developer.android.com/training/managing-audio/audio-focus.html">Managing Audio |
| 597 | Focus</a> and the focus-related methods and constants of |
| 598 | <a href="http://developer.android.com/reference/android/media/AudioManager.html">android.media.AudioManager</a>. |
| 599 | </dd> |
| 600 | |
Glenn Kasten | 963fd95 | 2013-04-18 17:26:23 -0700 | [diff] [blame] | 601 | <dt>AudioMixer</dt> |
| 602 | <dd> |
| 603 | The module within AudioFlinger responsible for |
| 604 | combining multiple tracks and applying attenuation |
| 605 | (volume) and certain effects. The Wikipedia article |
Clay Murphy | dc85c74 | 2014-09-10 15:10:03 -0700 | [diff] [blame] | 606 | <a href="http://en.wikipedia.org/wiki/Audio_mixing_(recorded_music)">Audio mixing (recorded music)</a> |
Glenn Kasten | 963fd95 | 2013-04-18 17:26:23 -0700 | [diff] [blame] | 607 | may be useful for understanding the generic |
| 608 | concept. But that article describes a mixer more as a hardware device |
| 609 | or a software application, rather than a software module within a system. |
| 610 | </dd> |
| 611 | |
Glenn Kasten | 5df2d52 | 2013-09-27 11:50:35 -0700 | [diff] [blame] | 612 | <dt>audio policy</dt> |
| 613 | <dd> |
| 614 | Service responsible for all actions that require a policy decision |
| 615 | to be made first, such as opening a new I/O stream, re-routing after a |
Glenn Kasten | ff257d4 | 2014-11-10 16:29:03 -0800 | [diff] [blame] | 616 | change, and stream volume management. |
Glenn Kasten | 5df2d52 | 2013-09-27 11:50:35 -0700 | [diff] [blame] | 617 | </dd> |
| 618 | |
Glenn Kasten | 963fd95 | 2013-04-18 17:26:23 -0700 | [diff] [blame] | 619 | <dt>AudioRecord</dt> |
| 620 | <dd> |
| 621 | The primary low-level client API for receiving data from an audio |
Clay Murphy | c28f237 | 2013-09-25 16:13:40 -0700 | [diff] [blame] | 622 | input device such as microphone. The data is usually in pulse-code modulation |
| 623 | (PCM) format. |
Glenn Kasten | 5df2d52 | 2013-09-27 11:50:35 -0700 | [diff] [blame] | 624 | The API is defined at |
Clay Murphy | dc85c74 | 2014-09-10 15:10:03 -0700 | [diff] [blame] | 625 | <a href="http://developer.android.com/reference/android/media/AudioRecord.html">android.media.AudioRecord</a>. |
Glenn Kasten | 5df2d52 | 2013-09-27 11:50:35 -0700 | [diff] [blame] | 626 | </dd> |
Glenn Kasten | 963fd95 | 2013-04-18 17:26:23 -0700 | [diff] [blame] | 627 | |
| 628 | <dt>AudioResampler</dt> |
| 629 | <dd> |
Glenn Kasten | 46ac61c | 2014-01-24 08:59:11 -0800 | [diff] [blame] | 630 | The module within AudioFlinger responsible for |
Clay Murphy | 714cd07 | 2014-12-01 13:07:52 -0800 | [diff] [blame] | 631 | <a href="src.html">sample rate conversion</a>. |
Glenn Kasten | 963fd95 | 2013-04-18 17:26:23 -0700 | [diff] [blame] | 632 | </dd> |
| 633 | |
Glenn Kasten | e158b8e | 2015-02-06 09:48:11 -0800 | [diff] [blame] | 634 | <dt>audio source</dt> |
| 635 | <dd> |
| 636 | An <a href="http://developer.android.com/reference/android/media/MediaRecorder.AudioSource.html">audio source</a> |
| 637 | is an enumeration of constants that indicates the desired use case for capturing audio input. |
| 638 | As of API level 21 and above, <a href="attributes.html">audio attributes</a> are preferred. |
| 639 | </dd> |
| 640 | |
Glenn Kasten | 963fd95 | 2013-04-18 17:26:23 -0700 | [diff] [blame] | 641 | <dt>AudioTrack</dt> |
| 642 | <dd> |
| 643 | The primary low-level client API for sending data to an audio output |
| 644 | device such as a speaker. The data is usually in PCM format. |
Glenn Kasten | 5df2d52 | 2013-09-27 11:50:35 -0700 | [diff] [blame] | 645 | The API is defined at |
Clay Murphy | dc85c74 | 2014-09-10 15:10:03 -0700 | [diff] [blame] | 646 | <a href="http://developer.android.com/reference/android/media/AudioTrack.html">android.media.AudioTrack</a>. |
Glenn Kasten | 963fd95 | 2013-04-18 17:26:23 -0700 | [diff] [blame] | 647 | </dd> |
| 648 | |
Glenn Kasten | 7351200 | 2015-01-15 10:06:31 -0800 | [diff] [blame] | 649 | <dt>audio_utils</dt> |
| 650 | <dd> |
| 651 | An audio utility library for features such as PCM format conversion, WAV file I/O, and |
| 652 | <a href="avoiding_pi.html#nonBlockingAlgorithms">non-blocking FIFO</a>, |
| 653 | which is largely independent of the Android platform. |
| 654 | </dd> |
| 655 | |
Glenn Kasten | 963fd95 | 2013-04-18 17:26:23 -0700 | [diff] [blame] | 656 | <dt>client</dt> |
| 657 | <dd> |
| 658 | Usually same as application or app, but sometimes the "client" of |
| 659 | AudioFlinger is actually a thread running within the mediaserver system |
| 660 | process. An example of that is when playing media that is decoded by a |
| 661 | MediaPlayer object. |
| 662 | </dd> |
| 663 | |
| 664 | <dt>HAL</dt> |
| 665 | <dd> |
| 666 | Hardware Abstraction Layer. HAL is a generic term in Android. With |
| 667 | respect to audio, it is a layer between AudioFlinger and the kernel |
| 668 | device driver with a C API, which replaces the earlier C++ libaudio. |
| 669 | </dd> |
| 670 | |
Glenn Kasten | 978bec8 | 2014-12-23 15:15:20 -0800 | [diff] [blame] | 671 | <dt>FastCapture</dt> |
| 672 | <dd> |
| 673 | A thread within AudioFlinger that sends audio data to lower latency "fast tracks" |
| 674 | and drives the input device when configured for reduced latency. |
| 675 | </dd> |
| 676 | |
Glenn Kasten | 963fd95 | 2013-04-18 17:26:23 -0700 | [diff] [blame] | 677 | <dt>FastMixer</dt> |
| 678 | <dd> |
Glenn Kasten | 978bec8 | 2014-12-23 15:15:20 -0800 | [diff] [blame] | 679 | A thread within AudioFlinger that receives and mixes audio data from lower latency "fast tracks" |
| 680 | and drives the primary output device when configured for reduced latency. |
Glenn Kasten | 963fd95 | 2013-04-18 17:26:23 -0700 | [diff] [blame] | 681 | </dd> |
| 682 | |
| 683 | <dt>fast track</dt> |
| 684 | <dd> |
Glenn Kasten | 978bec8 | 2014-12-23 15:15:20 -0800 | [diff] [blame] | 685 | An AudioTrack or AudioRecord client with lower latency but fewer features, on some devices and routes. |
Glenn Kasten | 963fd95 | 2013-04-18 17:26:23 -0700 | [diff] [blame] | 686 | </dd> |
| 687 | |
| 688 | <dt>MediaPlayer</dt> |
| 689 | <dd> |
| 690 | A higher-level client API than AudioTrack, for playing either encoded |
Clay Murphy | c28f237 | 2013-09-25 16:13:40 -0700 | [diff] [blame] | 691 | content, or content which includes multimedia audio and video tracks. |
Glenn Kasten | 963fd95 | 2013-04-18 17:26:23 -0700 | [diff] [blame] | 692 | </dd> |
| 693 | |
Glenn Kasten | 298f382 | 2013-06-12 17:17:36 -0700 | [diff] [blame] | 694 | <dt>media.log</dt> |
| 695 | <dd> |
| 696 | An AudioFlinger debugging feature, available in custom builds only, |
| 697 | for logging audio events to a circular buffer where they can then be |
| 698 | dumped retroactively when needed. |
| 699 | </dd> |
| 700 | |
Glenn Kasten | 963fd95 | 2013-04-18 17:26:23 -0700 | [diff] [blame] | 701 | <dt>mediaserver</dt> |
| 702 | <dd> |
| 703 | An Android system process that contains a number of media-related |
| 704 | services, including AudioFlinger. |
| 705 | </dd> |
| 706 | |
| 707 | <dt>NBAIO</dt> |
| 708 | <dd> |
| 709 | An abstraction for "non-blocking" audio input/output ports used within |
| 710 | AudioFlinger. The name can be misleading, as some implementations of |
| 711 | the NBAIO API actually do support blocking. The key implementations of |
| 712 | NBAIO are for pipes of various kinds. |
| 713 | </dd> |
| 714 | |
| 715 | <dt>normal mixer</dt> |
| 716 | <dd> |
| 717 | A thread within AudioFlinger that services most full-featured |
| 718 | AudioTrack clients, and either directly drives an output device or feeds |
Clay Murphy | c28f237 | 2013-09-25 16:13:40 -0700 | [diff] [blame] | 719 | its sub-mix into FastMixer via a pipe. |
Glenn Kasten | 963fd95 | 2013-04-18 17:26:23 -0700 | [diff] [blame] | 720 | </dd> |
| 721 | |
| 722 | <dt>OpenSL ES</dt> |
| 723 | <dd> |
Glenn Kasten | 978bec8 | 2014-12-23 15:15:20 -0800 | [diff] [blame] | 724 | An audio API standard by |
| 725 | <a href="http://www.khronos.org/">The Khronos Group</a>. Android versions since |
| 726 | API level 9 support a native audio API that is based on a subset of |
| 727 | <a href="http://www.khronos.org/opensles/">OpenSL ES 1.0.1</a>. |
Glenn Kasten | 963fd95 | 2013-04-18 17:26:23 -0700 | [diff] [blame] | 728 | </dd> |
| 729 | |
Glenn Kasten | fdc7b7b | 2013-10-28 11:11:34 -0700 | [diff] [blame] | 730 | <dt>silent mode</dt> |
| 731 | <dd> |
| 732 | A user-settable feature to mute the phone ringer and notifications, |
| 733 | without affecting media playback (music, videos, games) or alarms. |
| 734 | </dd> |
| 735 | |
Glenn Kasten | 5df2d52 | 2013-09-27 11:50:35 -0700 | [diff] [blame] | 736 | <dt>SoundPool</dt> |
| 737 | <dd> |
| 738 | A higher-level client API than AudioTrack, used for playing sampled |
| 739 | audio clips. It is useful for triggering UI feedback, game sounds, etc. |
| 740 | The API is defined at |
Clay Murphy | dc85c74 | 2014-09-10 15:10:03 -0700 | [diff] [blame] | 741 | <a href="http://developer.android.com/reference/android/media/SoundPool.html">android.media.SoundPool</a>. |
Glenn Kasten | 5df2d52 | 2013-09-27 11:50:35 -0700 | [diff] [blame] | 742 | </dd> |
Glenn Kasten | 5df2d52 | 2013-09-27 11:50:35 -0700 | [diff] [blame] | 743 | |
| 744 | <dt>Stagefright</dt> |
| 745 | <dd> |
| 746 | See <a href="{@docRoot}devices/media.html">Media</a>. |
| 747 | </dd> |
| 748 | |
Glenn Kasten | 963fd95 | 2013-04-18 17:26:23 -0700 | [diff] [blame] | 749 | <dt>StateQueue</dt> |
| 750 | <dd> |
| 751 | A module within AudioFlinger responsible for synchronizing state |
| 752 | among threads. Whereas NBAIO is used to pass data, StateQueue is used |
| 753 | to pass control information. |
| 754 | </dd> |
| 755 | |
Glenn Kasten | fdc7b7b | 2013-10-28 11:11:34 -0700 | [diff] [blame] | 756 | <dt>strategy</dt> |
| 757 | <dd> |
| 758 | A grouping of stream types with similar behavior, used by the audio policy service. |
| 759 | </dd> |
| 760 | |
| 761 | <dt>stream type</dt> |
| 762 | <dd> |
| 763 | An enumeration that expresses a use case for audio output. |
| 764 | The audio policy implementation uses the stream type, along with other parameters, |
| 765 | to determine volume and routing decisions. |
| 766 | Specific stream types are listed at |
| 767 | <a href="http://developer.android.com/reference/android/media/AudioManager.html">android.media.AudioManager</a>. |
| 768 | </dd> |
| 769 | |
Glenn Kasten | 298f382 | 2013-06-12 17:17:36 -0700 | [diff] [blame] | 770 | <dt>tee sink</dt> |
| 771 | <dd> |
Glenn Kasten | 37784a5 | 2014-02-03 11:57:33 -0800 | [diff] [blame] | 772 | See the separate article on tee sink in |
Clay Murphy | 714cd07 | 2014-12-01 13:07:52 -0800 | [diff] [blame] | 773 | <a href="debugging.html#teeSink">Audio Debugging</a>. |
Glenn Kasten | 298f382 | 2013-06-12 17:17:36 -0700 | [diff] [blame] | 774 | </dd> |
| 775 | |
Glenn Kasten | 963fd95 | 2013-04-18 17:26:23 -0700 | [diff] [blame] | 776 | <dt>tinyalsa</dt> |
| 777 | <dd> |
| 778 | A small user-mode API above ALSA kernel with BSD license, recommended |
Clay Murphy | c28f237 | 2013-09-25 16:13:40 -0700 | [diff] [blame] | 779 | for use in HAL implementations. |
Glenn Kasten | 963fd95 | 2013-04-18 17:26:23 -0700 | [diff] [blame] | 780 | </dd> |
| 781 | |
Glenn Kasten | fdc7b7b | 2013-10-28 11:11:34 -0700 | [diff] [blame] | 782 | <dt>ToneGenerator</dt> |
| 783 | <dd> |
| 784 | A higher-level client API than AudioTrack, used for playing DTMF signals. |
| 785 | See the Wikipedia article |
Clay Murphy | dc85c74 | 2014-09-10 15:10:03 -0700 | [diff] [blame] | 786 | <a href="http://en.wikipedia.org/wiki/Dual-tone_multi-frequency_signaling">Dual-tone multi-frequency signaling</a>, |
Glenn Kasten | fdc7b7b | 2013-10-28 11:11:34 -0700 | [diff] [blame] | 787 | and the API definition at |
Clay Murphy | dc85c74 | 2014-09-10 15:10:03 -0700 | [diff] [blame] | 788 | <a href="http://developer.android.com/reference/android/media/ToneGenerator.html">android.media.ToneGenerator</a>. |
Glenn Kasten | fdc7b7b | 2013-10-28 11:11:34 -0700 | [diff] [blame] | 789 | </dd> |
| 790 | |
Glenn Kasten | 963fd95 | 2013-04-18 17:26:23 -0700 | [diff] [blame] | 791 | <dt>track</dt> |
| 792 | <dd> |
Glenn Kasten | ff257d4 | 2014-11-10 16:29:03 -0800 | [diff] [blame] | 793 | An audio stream, controlled by the AudioTrack or AudioRecord API. |
Glenn Kasten | 963fd95 | 2013-04-18 17:26:23 -0700 | [diff] [blame] | 794 | </dd> |
| 795 | |
Glenn Kasten | fdc7b7b | 2013-10-28 11:11:34 -0700 | [diff] [blame] | 796 | <dt>volume attenuation curve</dt> |
| 797 | <dd> |
| 798 | A device-specific mapping from a generic volume index to a particular attenuation factor |
| 799 | for a given output. |
| 800 | </dd> |
| 801 | |
| 802 | <dt>volume index</dt> |
| 803 | <dd> |
| 804 | A unitless integer that expresses the desired relative volume of a stream. |
| 805 | The volume-related APIs of |
| 806 | <a href="http://developer.android.com/reference/android/media/AudioManager.html">android.media.AudioManager</a> |
| 807 | operate in volume indices rather than absolute attenuation factors. |
| 808 | </dd> |
| 809 | |
Glenn Kasten | 963fd95 | 2013-04-18 17:26:23 -0700 | [diff] [blame] | 810 | </dl> |