blob: 0b876a7bd8865e4b0d52b37fcabf942137bcfabe [file] [log] [blame]
Glenn Kasten963fd952013-04-18 17:26:23 -07001page.title=Audio Terminology
2@jd:body
3
4<div id="qv-wrapper">
5 <div id="qv">
6 <h2>In this document</h2>
7 <ol id="auto-toc">
8 </ol>
9 </div>
10</div>
11
12<p>
13This document provides a glossary of audio-related terminology, including
14a list of widely used, generic terms and a list of terms that are specific
15to Android.
16</p>
17
18<h2 id="genericTerm">Generic Terms</h2>
19
20<p>
21These are audio terms that are widely used, with their conventional meanings.
22</p>
23
Glenn Kasten5df2d522013-09-27 11:50:35 -070024<h3 id="digitalAudioTerms">Digital Audio</h3>
25
Glenn Kasten963fd952013-04-18 17:26:23 -070026<dl>
27
Glenn Kasten298f3822013-06-12 17:17:36 -070028<dt>acoustics</dt>
29<dd>
30The study of the mechanical properties of sound, for example how the
31physical placement of transducers such as speakers and microphones on
32a device affects perceived audio quality.
33</dd>
34
Glenn Kasten5df2d522013-09-27 11:50:35 -070035<dt>attenuation</dt>
36<dd>
37A multiplicative factor less than or equal to 1.0,
38applied to an audio signal to decrease the signal level.
39Compare to "gain".
40</dd>
41
Glenn Kasten963fd952013-04-18 17:26:23 -070042<dt>bits per sample or bit depth</dt>
43<dd>
44Number of bits of information per sample.
45</dd>
46
47<dt>channel</dt>
48<dd>
49A single stream of audio information, usually corresponding to one
50location of recording or playback.
51</dd>
52
Glenn Kasten5df2d522013-09-27 11:50:35 -070053<dt>downmixing</dt>
54<dd>
55To decrease the number of channels, e.g. from stereo to mono, or from 5.1 to stereo.
56This can be accomplished by dropping some channels, mixing channels, or more advanced signal processing.
57Simple mixing without attenuation or limiting has the potential for overflow and clipping.
58Compare to "upmixing".
Glenn Kastenfdc7b7b2013-10-28 11:11:34 -070059</dd>
60
61<dt>duck</dt>
62<dd>
63To temporarily reduce the volume of one stream, when another stream
64becomes active. For example, if music is playing and a notification arrives,
65then the music stream could be ducked while the notification plays.
66Compare to "mute".
67</dd>
Glenn Kasten5df2d522013-09-27 11:50:35 -070068
Glenn Kasten963fd952013-04-18 17:26:23 -070069<dt>frame</dt>
70<dd>
71A set of samples, one per channel, at a point in time.
72</dd>
73
74<dt>frames per buffer</dt>
75<dd>
76The number of frames handed from one module to the next at once;
77for example the audio HAL interface uses this concept.
78</dd>
79
Glenn Kasten5df2d522013-09-27 11:50:35 -070080<dt>gain</dt>
81<dd>
82A multiplicative factor greater than or equal to 1.0,
83applied to an audio signal to increase the signal level.
84Compare to "attenuation".
85</dd>
86
Glenn Kasten298f3822013-06-12 17:17:36 -070087<dt>Hz</dt>
88<dd>
89The units for sample rate or frame rate.
90</dd>
91
92<dt>latency</dt>
93<dd>
94Time delay as a signal passes through a system.
95</dd>
96
Glenn Kasten963fd952013-04-18 17:26:23 -070097<dt>mono</dt>
98<dd>
99One channel.
100</dd>
101
Glenn Kasten5df2d522013-09-27 11:50:35 -0700102<dt>multichannel</dt>
103<dd>
104See "surround sound".
105Strictly, since stereo is more than one channel, it is also "multi" channel.
106But that usage would be confusing.
107</dd>
108
Glenn Kastenfdc7b7b2013-10-28 11:11:34 -0700109<dt>mute</dt>
110<dd>
111To (temporarily) force volume to be zero, independently from the usual volume controls.
112</dd>
113
Glenn Kasten5df2d522013-09-27 11:50:35 -0700114<dt>PCM</dt>
115<dd>
116Pulse Code Modulation, the most common low-level encoding of digital audio.
117The audio signal is sampled at a regular interval, called the sample rate,
118and then quantized to discrete values within a particular range depending on the bit depth.
119For example, for 16-bit PCM, the sample values are integers between -32768 and +32767.
120</dd>
121
Glenn Kastenfdc7b7b2013-10-28 11:11:34 -0700122<dt>ramp</dt>
123<dd>
124To gradually increase or decrease the level of a particular audio parameter,
125for example volume or the strength of an effect.
126A volume ramp is commonly applied when pausing and resuming music, to avoid a hard audible transition.
127</dd>
128
Glenn Kasten963fd952013-04-18 17:26:23 -0700129<dt>sample</dt>
130<dd>
131A number representing the audio value for a single channel at a point in time.
132</dd>
133
134<dt>sample rate or frame rate</dt>
135<dd>
136Number of frames per second;
137note that "frame rate" is thus more accurate,
Clay Murphyc28f2372013-09-25 16:13:40 -0700138but "sample rate" is conventionally used to mean "frame rate."
Glenn Kasten963fd952013-04-18 17:26:23 -0700139</dd>
140
Glenn Kastenfdc7b7b2013-10-28 11:11:34 -0700141<dt>sonification</dt>
142<dd>
143The use of sound to express feedback or information,
144for example touch sounds and keyboard sounds.
145</dd>
146
Glenn Kasten963fd952013-04-18 17:26:23 -0700147<dt>stereo</dt>
148<dd>
149Two channels.
150</dd>
151
Glenn Kasten5df2d522013-09-27 11:50:35 -0700152<dt>stereo widening</dt>
153<dd>
154An effect applied to a stereo signal, to make another stereo signal which sounds fuller and richer.
155The effect can also be applied to a mono signal, in which case it is a type of upmixing.
156</dd>
157
158<dt>surround sound</dt>
159<dd>
160Various techniques for increasing the ability of a listener to perceive
161sound position beyond stereo left and right.
162</dd>
163
164<dt>upmixing</dt>
165<dd>
166To increase the number of channels, e.g. from mono to stereo, or from stereo to surround sound.
167This can be accomplished by duplication, panning, or more advanced signal processing.
168Compare to "downmixing".
Glenn Kasten795a9de2014-01-24 08:58:56 -0800169</dd>
Glenn Kasten963fd952013-04-18 17:26:23 -0700170
Glenn Kasten5df2d522013-09-27 11:50:35 -0700171<dt>virtualizer</dt>
172<dd>
173An effect that attempts to spatialize audio channels, such as trying to
174simulate more speakers, or give the illusion that various sound sources have position.
175</dd>
176
Glenn Kastenfdc7b7b2013-10-28 11:11:34 -0700177<dt>volume</dt>
178<dd>
179Loudness, the subjective strength of an audio signal.
180</dd>
181
Glenn Kasten795a9de2014-01-24 08:58:56 -0800182</dl>
183
Glenn Kasten5df2d522013-09-27 11:50:35 -0700184<h3 id="hardwareTerms">Hardware and Accessories</h3>
185
186<p>
187These terms are related to audio hardware and accessories.
188</p>
189
190<h4 id="interDeviceTerms">Inter-device interconnect</h4>
191
192<p>
193These technologies connect audio and video components between devices,
194and are readily visible at the external connectors. The HAL implementor
195may need to be aware of these, as well as the end user.
196</p>
197
198<dl>
199
200<dt>Bluetooth</dt>
201<dd>
202A short range wireless technology.
203The major audio-related
Clay Murphydc85c742014-09-10 15:10:03 -0700204<a href="http://en.wikipedia.org/wiki/Bluetooth_profile">Bluetooth profiles</a>
Glenn Kasten5df2d522013-09-27 11:50:35 -0700205and
Clay Murphydc85c742014-09-10 15:10:03 -0700206<a href="http://en.wikipedia.org/wiki/Bluetooth_protocols">Bluetooth protocols</a>
Glenn Kasten5df2d522013-09-27 11:50:35 -0700207are described at these Wikipedia articles:
208
209<ul>
210
Clay Murphydc85c742014-09-10 15:10:03 -0700211<li><a href="http://en.wikipedia.org/wiki/Bluetooth_profile#Advanced_Audio_Distribution_Profile_.28A2DP.29">A2DP</a>
Glenn Kasten5df2d522013-09-27 11:50:35 -0700212for music
213</li>
214
Clay Murphydc85c742014-09-10 15:10:03 -0700215<li><a href="http://en.wikipedia.org/wiki/Bluetooth_protocols#Synchronous_connection-oriented_.28SCO.29_link">SCO</a>
Glenn Kasten5df2d522013-09-27 11:50:35 -0700216for telephony
217</li>
218
219</ul>
220
221</dd>
222
223<dt>DisplayPort</dt>
224<dd>
225Digital display interface by VESA.
226</dd>
227
228<dt>HDMI</dt>
229<dd>
230High-Definition Multimedia Interface, an interface for transferring
231audio and video data. For mobile devices, either a micro-HDMI (type D) or MHL connector is used.
232</dd>
233
234<dt>MHL</dt>
235<dd>
236Mobile High-Definition Link is a mobile audio/video interface, often
237over micro-USB connector.
238</dd>
239
240<dt>phone connector</dt>
241<dd>
242A mini or sub-mini phone connector
243connects a device to wired headphones, headset, or line-level amplifier.
244</dd>
245
246<dt>SlimPort</dt>
247<dd>
248An adapter from micro-USB to HDMI.
249</dd>
250
251<dt>S/PDIF</dt>
252<dd>
253Sony/Philips Digital Interface Format is an interconnect for uncompressed PCM.
Clay Murphydc85c742014-09-10 15:10:03 -0700254See Wikipedia article <a href="http://en.wikipedia.org/wiki/S/PDIF">S/PDIF</a>.
Glenn Kasten5df2d522013-09-27 11:50:35 -0700255</dd>
256
257<dt>USB</dt>
258<dd>
259Universal Serial Bus.
Clay Murphydc85c742014-09-10 15:10:03 -0700260See Wikipedia article <a href="http://en.wikipedia.org/wiki/USB">USB</a>.
Glenn Kasten5df2d522013-09-27 11:50:35 -0700261</dd>
262
263</dl>
264
265<h4 id="intraDeviceTerms">Intra-device interconnect</h4>
266
267<p>
268These technologies connect internal audio components within a given
269device, and are not visible without disassembling the device. The HAL
270implementor may need to be aware of these, but not the end user.
271</p>
272
273See these Wikipedia articles:
274<ul>
Clay Murphydc85c742014-09-10 15:10:03 -0700275<li><a href="http://en.wikipedia.org/wiki/General-purpose_input/output">GPIO</a></li>
276<li><a href="http://en.wikipedia.org/wiki/I%C2%B2C">I²C</a></li>
277<li><a href="http://en.wikipedia.org/wiki/I%C2%B2S">I²S</a></li>
278<li><a href="http://en.wikipedia.org/wiki/McASP">McASP</a></li>
279<li><a href="http://en.wikipedia.org/wiki/SLIMbus">SLIMbus</a></li>
280<li><a href="http://en.wikipedia.org/wiki/Serial_Peripheral_Interface_Bus">SPI</a></li>
Glenn Kasten5df2d522013-09-27 11:50:35 -0700281</ul>
282
283<h3 id="signalTerms">Audio Signal Path</h3>
284
285<p>
286These terms are related to the signal path that audio data follows from
287an application to the transducer, or vice-versa.
288</p>
289
Glenn Kasten795a9de2014-01-24 08:58:56 -0800290<dl>
291
Glenn Kasten5df2d522013-09-27 11:50:35 -0700292<dt>ADC</dt>
293<dd>
294Analog to digital converter, a module that converts an analog signal
295(continuous in both time and amplitude) to a digital signal (discrete in
296both time and amplitude). Conceptually, an ADC consists of a periodic
297sample-and-hold followed by a quantizer, although it does not have to
298be implemented that way. An ADC is usually preceded by a low-pass filter
299to remove any high frequency components that are not representable using
300the desired sample rate. See Wikipedia article
Clay Murphydc85c742014-09-10 15:10:03 -0700301<a href="http://en.wikipedia.org/wiki/Analog-to-digital_converter">Analog-to-digital_converter</a>.
Glenn Kasten5df2d522013-09-27 11:50:35 -0700302</dd>
303
304<dt>AP</dt>
305<dd>
306Application processor, the main general-purpose computer on a mobile device.
307</dd>
308
309<dt>codec</dt>
310<dd>
311Coder-decoder, a module that encodes and/or decodes an audio signal
312from one representation to another. Typically this is analog to PCM, or PCM to analog.
313Strictly, the term "codec" is reserved for modules that both encode and decode,
314however it can also more loosely refer to only one of these.
315See Wikipedia article
Clay Murphydc85c742014-09-10 15:10:03 -0700316<a href="http://en.wikipedia.org/wiki/Audio_codec">Audio codec</a>.
Glenn Kasten5df2d522013-09-27 11:50:35 -0700317</dd>
318
319<dt>DAC</dt>
320<dd>
321Digital to analog converter, a module that converts a digital signal
322(discrete in both time and amplitude) to an analog signal
323(continuous in both time and amplitude). A DAC is usually followed by
324a low-pass filter to remove any high frequency components introduced
325by digital quantization.
326See Wikipedia article
Clay Murphydc85c742014-09-10 15:10:03 -0700327<a href="http://en.wikipedia.org/wiki/Digital-to-analog_converter">Digital-to-analog converter</a>.
Glenn Kasten5df2d522013-09-27 11:50:35 -0700328</dd>
329
330<dt>DSP</dt>
331<dd>
332Digital Signal Processor, an optional component which is typically located
333after the application processor (for output), or before the application processor (for input).
334The primary purpose of a DSP is to off-load the application processor,
335and provide signal processing features at a lower power cost.
336</dd>
337
338<dt>PDM</dt>
339<dd>
340Pulse-density modulation
341is a form of modulation used to represent an analog signal by a digital signal,
342where the relative density of 1s versus 0s indicates the signal level.
343It is commonly used by digital to analog converters.
344See Wikipedia article
Clay Murphydc85c742014-09-10 15:10:03 -0700345<a href="http://en.wikipedia.org/wiki/Pulse-density_modulation">Pulse-density modulation</a>.
Glenn Kasten5df2d522013-09-27 11:50:35 -0700346</dd>
347
348<dt>PWM</dt>
349<dd>
350Pulse-width modulation
351is a form of modulation used to represent an analog signal by a digital signal,
352where the relative width of a digital pulse indicates the signal level.
353It is commonly used by analog to digital converters.
354See Wikipedia article
Clay Murphydc85c742014-09-10 15:10:03 -0700355<a href="http://en.wikipedia.org/wiki/Pulse-width_modulation">Pulse-width modulation</a>.
Glenn Kasten5df2d522013-09-27 11:50:35 -0700356</dd>
357
Glenn Kasten795a9de2014-01-24 08:58:56 -0800358</dl>
Glenn Kasten5df2d522013-09-27 11:50:35 -0700359
Glenn Kasten963fd952013-04-18 17:26:23 -0700360<h2 id="androidSpecificTerms">Android-Specific Terms</h2>
361
362<p>
Clay Murphyc28f2372013-09-25 16:13:40 -0700363These are terms specific to the Android audio framework, or that
Glenn Kasten963fd952013-04-18 17:26:23 -0700364may have a special meaning within Android beyond their general meaning.
365</p>
366
367<dl>
368
369<dt>ALSA</dt>
370<dd>
371Advanced Linux Sound Architecture. As the name suggests, it is an audio
372framework primarily for Linux, but it has influenced other systems.
373See Wikipedia article
Clay Murphydc85c742014-09-10 15:10:03 -0700374<a href="http://en.wikipedia.org/wiki/Advanced_Linux_Sound_Architecture">ALSA</a>
Glenn Kasten963fd952013-04-18 17:26:23 -0700375for the general definition. As used within Android, it refers primarily
376to the kernel audio framework and drivers, not to the user-mode API. See
377tinyalsa.
378</dd>
379
Glenn Kasten298f3822013-06-12 17:17:36 -0700380<dt>AudioEffect</dt>
381<dd>
382An API and implementation framework for output (post-processing) effects
383and input (pre-processing) effects. The API is defined at
Clay Murphydc85c742014-09-10 15:10:03 -0700384<a href="http://developer.android.com/reference/android/media/audiofx/AudioEffect.html">android.media.audiofx.AudioEffect</a>.
Glenn Kasten298f3822013-06-12 17:17:36 -0700385</dd>
386
Glenn Kasten963fd952013-04-18 17:26:23 -0700387<dt>AudioFlinger</dt>
388<dd>
389The sound server implementation for Android. AudioFlinger
390runs within the mediaserver process. See Wikipedia article
Clay Murphydc85c742014-09-10 15:10:03 -0700391<a href="http://en.wikipedia.org/wiki/Sound_server">Sound server</a>
Glenn Kasten963fd952013-04-18 17:26:23 -0700392for the generic definition.
393</dd>
394
Glenn Kastenfdc7b7b2013-10-28 11:11:34 -0700395<dt>audio focus</dt>
396<dd>
397A set of APIs for managing audio interactions across multiple independent apps.
398See <a href="http://developer.android.com/training/managing-audio/audio-focus.html">Managing Audio
399Focus</a> and the focus-related methods and constants of
400<a href="http://developer.android.com/reference/android/media/AudioManager.html">android.media.AudioManager</a>.
401</dd>
402
Glenn Kasten963fd952013-04-18 17:26:23 -0700403<dt>AudioMixer</dt>
404<dd>
405The module within AudioFlinger responsible for
406combining multiple tracks and applying attenuation
407(volume) and certain effects. The Wikipedia article
Clay Murphydc85c742014-09-10 15:10:03 -0700408<a href="http://en.wikipedia.org/wiki/Audio_mixing_(recorded_music)">Audio mixing (recorded music)</a>
Glenn Kasten963fd952013-04-18 17:26:23 -0700409may be useful for understanding the generic
410concept. But that article describes a mixer more as a hardware device
411or a software application, rather than a software module within a system.
412</dd>
413
Glenn Kasten5df2d522013-09-27 11:50:35 -0700414<dt>audio policy</dt>
415<dd>
416Service responsible for all actions that require a policy decision
417to be made first, such as opening a new I/O stream, re-routing after a
418change and stream volume management.
419</dd>
420
Glenn Kasten963fd952013-04-18 17:26:23 -0700421<dt>AudioRecord</dt>
422<dd>
423The primary low-level client API for receiving data from an audio
Clay Murphyc28f2372013-09-25 16:13:40 -0700424input device such as microphone. The data is usually in pulse-code modulation
425(PCM) format.
Glenn Kasten5df2d522013-09-27 11:50:35 -0700426The API is defined at
Clay Murphydc85c742014-09-10 15:10:03 -0700427<a href="http://developer.android.com/reference/android/media/AudioRecord.html">android.media.AudioRecord</a>.
Glenn Kasten5df2d522013-09-27 11:50:35 -0700428</dd>
Glenn Kasten963fd952013-04-18 17:26:23 -0700429
430<dt>AudioResampler</dt>
431<dd>
Glenn Kasten46ac61c2014-01-24 08:59:11 -0800432The module within AudioFlinger responsible for
433<a href="audio_src.html">sample rate conversion</a>.
Glenn Kasten963fd952013-04-18 17:26:23 -0700434</dd>
435
Glenn Kasten963fd952013-04-18 17:26:23 -0700436<dt>AudioTrack</dt>
437<dd>
438The primary low-level client API for sending data to an audio output
439device such as a speaker. The data is usually in PCM format.
Glenn Kasten5df2d522013-09-27 11:50:35 -0700440The API is defined at
Clay Murphydc85c742014-09-10 15:10:03 -0700441<a href="http://developer.android.com/reference/android/media/AudioTrack.html">android.media.AudioTrack</a>.
Glenn Kasten963fd952013-04-18 17:26:23 -0700442</dd>
443
444<dt>client</dt>
445<dd>
446Usually same as application or app, but sometimes the "client" of
447AudioFlinger is actually a thread running within the mediaserver system
448process. An example of that is when playing media that is decoded by a
449MediaPlayer object.
450</dd>
451
452<dt>HAL</dt>
453<dd>
454Hardware Abstraction Layer. HAL is a generic term in Android. With
455respect to audio, it is a layer between AudioFlinger and the kernel
456device driver with a C API, which replaces the earlier C++ libaudio.
457</dd>
458
459<dt>FastMixer</dt>
460<dd>
461A thread within AudioFlinger that services lower latency "fast tracks"
462and drives the primary output device.
463</dd>
464
465<dt>fast track</dt>
466<dd>
467An AudioTrack client with lower latency but fewer features, on some devices.
468</dd>
469
470<dt>MediaPlayer</dt>
471<dd>
472A higher-level client API than AudioTrack, for playing either encoded
Clay Murphyc28f2372013-09-25 16:13:40 -0700473content, or content which includes multimedia audio and video tracks.
Glenn Kasten963fd952013-04-18 17:26:23 -0700474</dd>
475
Glenn Kasten298f3822013-06-12 17:17:36 -0700476<dt>media.log</dt>
477<dd>
478An AudioFlinger debugging feature, available in custom builds only,
479for logging audio events to a circular buffer where they can then be
480dumped retroactively when needed.
481</dd>
482
Glenn Kasten963fd952013-04-18 17:26:23 -0700483<dt>mediaserver</dt>
484<dd>
485An Android system process that contains a number of media-related
486services, including AudioFlinger.
487</dd>
488
489<dt>NBAIO</dt>
490<dd>
491An abstraction for "non-blocking" audio input/output ports used within
492AudioFlinger. The name can be misleading, as some implementations of
493the NBAIO API actually do support blocking. The key implementations of
494NBAIO are for pipes of various kinds.
495</dd>
496
497<dt>normal mixer</dt>
498<dd>
499A thread within AudioFlinger that services most full-featured
500AudioTrack clients, and either directly drives an output device or feeds
Clay Murphyc28f2372013-09-25 16:13:40 -0700501its sub-mix into FastMixer via a pipe.
Glenn Kasten963fd952013-04-18 17:26:23 -0700502</dd>
503
504<dt>OpenSL ES</dt>
505<dd>
506An audio API standard by The Khronos Group. Android versions since
507API level 9 support a native audio API which is based on a subset of
508OpenSL ES 1.0.1.
509</dd>
510
Glenn Kastenfdc7b7b2013-10-28 11:11:34 -0700511<dt>silent mode</dt>
512<dd>
513A user-settable feature to mute the phone ringer and notifications,
514without affecting media playback (music, videos, games) or alarms.
515</dd>
516
Glenn Kasten5df2d522013-09-27 11:50:35 -0700517<dt>SoundPool</dt>
518<dd>
519A higher-level client API than AudioTrack, used for playing sampled
520audio clips. It is useful for triggering UI feedback, game sounds, etc.
521The API is defined at
Clay Murphydc85c742014-09-10 15:10:03 -0700522<a href="http://developer.android.com/reference/android/media/SoundPool.html">android.media.SoundPool</a>.
Glenn Kasten5df2d522013-09-27 11:50:35 -0700523</dd>
Glenn Kasten5df2d522013-09-27 11:50:35 -0700524
525<dt>Stagefright</dt>
526<dd>
527See <a href="{@docRoot}devices/media.html">Media</a>.
528</dd>
529
Glenn Kasten963fd952013-04-18 17:26:23 -0700530<dt>StateQueue</dt>
531<dd>
532A module within AudioFlinger responsible for synchronizing state
533among threads. Whereas NBAIO is used to pass data, StateQueue is used
534to pass control information.
535</dd>
536
Glenn Kastenfdc7b7b2013-10-28 11:11:34 -0700537<dt>strategy</dt>
538<dd>
539A grouping of stream types with similar behavior, used by the audio policy service.
540</dd>
541
542<dt>stream type</dt>
543<dd>
544An enumeration that expresses a use case for audio output.
545The audio policy implementation uses the stream type, along with other parameters,
546to determine volume and routing decisions.
547Specific stream types are listed at
548<a href="http://developer.android.com/reference/android/media/AudioManager.html">android.media.AudioManager</a>.
549</dd>
550
Glenn Kasten298f3822013-06-12 17:17:36 -0700551<dt>tee sink</dt>
552<dd>
Glenn Kasten37784a52014-02-03 11:57:33 -0800553See the separate article on tee sink in
554<a href="audio_debugging.html#teeSink">Audio Debugging</a>.
Glenn Kasten298f3822013-06-12 17:17:36 -0700555</dd>
556
Glenn Kasten963fd952013-04-18 17:26:23 -0700557<dt>tinyalsa</dt>
558<dd>
559A small user-mode API above ALSA kernel with BSD license, recommended
Clay Murphyc28f2372013-09-25 16:13:40 -0700560for use in HAL implementations.
Glenn Kasten963fd952013-04-18 17:26:23 -0700561</dd>
562
Glenn Kastenfdc7b7b2013-10-28 11:11:34 -0700563<dt>ToneGenerator</dt>
564<dd>
565A higher-level client API than AudioTrack, used for playing DTMF signals.
566See the Wikipedia article
Clay Murphydc85c742014-09-10 15:10:03 -0700567<a href="http://en.wikipedia.org/wiki/Dual-tone_multi-frequency_signaling">Dual-tone multi-frequency signaling</a>,
Glenn Kastenfdc7b7b2013-10-28 11:11:34 -0700568and the API definition at
Clay Murphydc85c742014-09-10 15:10:03 -0700569<a href="http://developer.android.com/reference/android/media/ToneGenerator.html">android.media.ToneGenerator</a>.
Glenn Kastenfdc7b7b2013-10-28 11:11:34 -0700570</dd>
571
Glenn Kasten963fd952013-04-18 17:26:23 -0700572<dt>track</dt>
573<dd>
574An audio stream, controlled by the AudioTrack API.
575</dd>
576
Glenn Kastenfdc7b7b2013-10-28 11:11:34 -0700577<dt>volume attenuation curve</dt>
578<dd>
579A device-specific mapping from a generic volume index to a particular attenuation factor
580for a given output.
581</dd>
582
583<dt>volume index</dt>
584<dd>
585A unitless integer that expresses the desired relative volume of a stream.
586The volume-related APIs of
587<a href="http://developer.android.com/reference/android/media/AudioManager.html">android.media.AudioManager</a>
588operate in volume indices rather than absolute attenuation factors.
589</dd>
590
Glenn Kasten963fd952013-04-18 17:26:23 -0700591</dl>
592
Glenn Kasten46ac61c2014-01-24 08:59:11 -0800593<h2 id="srcTerms">Sample Rate Conversion</h2>
594
Clay Murphy3a7af3a2014-09-09 17:29:09 -0700595<dl>
596
597<dt>downsample</dt>
598<dd>To resample, where sink sample rate &lt; source sample rate.</dd>
599
600<dt>Nyquist frequency</dt>
601<dd>
602The Nyquist frequency, equal to 1/2 of a given sample rate, is the
603maximum frequency component that can be represented by a discretized
604signal at that sample rate. For example, the human hearing range is
605typically assumed to extend up to approximately 20 kHz, and so a digital
606audio signal must have a sample rate of at least 40 kHz to represent that
607range. In practice, sample rates of 44.1 kHz and 48 kHz are commonly
608used, with Nyquist frequencies of 22.05 kHz and 24 kHz respectively.
609See
Clay Murphydc85c742014-09-10 15:10:03 -0700610<a href="http://en.wikipedia.org/wiki/Nyquist_frequency">Nyquist frequency</a>
Clay Murphy3a7af3a2014-09-09 17:29:09 -0700611and
Clay Murphydc85c742014-09-10 15:10:03 -0700612<a href="http://en.wikipedia.org/wiki/Hearing_range">Hearing range</a>
Clay Murphy3a7af3a2014-09-09 17:29:09 -0700613for more information.
614</dd>
615
616<dt>resampler</dt>
617<dd>Synonym for sample rate converter.</dd>
618
619<dt>resampling</dt>
620<dd>The process of converting sample rate.</dd>
621
622<dt>sample rate converter</dt>
623<dd>A module that resamples.</dd>
624
625<dt>sink</dt>
626<dd>The output of a resampler.</dd>
627
628<dt>source</dt>
629<dd>The input to a resampler.</dd>
630
631<dt>upsample</dt>
632<dd>To resample, where sink sample rate &gt; source sample rate.</dd>
633
634</dl>
Glenn Kasten46ac61c2014-01-24 08:59:11 -0800635