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