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