blob: bd59a84f103a7971a7954d052a242c7e0a28dbed [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 Murphy3a7af3a2014-09-09 17:29:09 -0700204<a href="http://en.wikipedia.org/wiki/Bluetooth_profile"
Glenn Kasten5df2d522013-09-27 11:50:35 -0700205target="_android">Bluetooth profiles</a>
206and
Clay Murphy3a7af3a2014-09-09 17:29:09 -0700207<a href="http://en.wikipedia.org/wiki/Bluetooth_protocols"
Glenn Kasten5df2d522013-09-27 11:50:35 -0700208target="_android">Bluetooth protocols</a>
209are described at these Wikipedia articles:
210
211<ul>
212
Clay Murphy3a7af3a2014-09-09 17:29:09 -0700213<li><a href="http://en.wikipedia.org/wiki/Bluetooth_profile#Advanced_Audio_Distribution_Profile_.28A2DP.29"
Glenn Kasten5df2d522013-09-27 11:50:35 -0700214target="_android">A2DP</a>
215for music
216</li>
217
Clay Murphy3a7af3a2014-09-09 17:29:09 -0700218<li><a href="http://en.wikipedia.org/wiki/Bluetooth_protocols#Synchronous_connection-oriented_.28SCO.29_link"
Glenn Kasten5df2d522013-09-27 11:50:35 -0700219target="_android">SCO</a>
220for telephony
221</li>
222
223</ul>
224
225</dd>
226
227<dt>DisplayPort</dt>
228<dd>
229Digital display interface by VESA.
230</dd>
231
232<dt>HDMI</dt>
233<dd>
234High-Definition Multimedia Interface, an interface for transferring
235audio and video data. For mobile devices, either a micro-HDMI (type D) or MHL connector is used.
236</dd>
237
238<dt>MHL</dt>
239<dd>
240Mobile High-Definition Link is a mobile audio/video interface, often
241over micro-USB connector.
242</dd>
243
244<dt>phone connector</dt>
245<dd>
246A mini or sub-mini phone connector
247connects a device to wired headphones, headset, or line-level amplifier.
248</dd>
249
250<dt>SlimPort</dt>
251<dd>
252An adapter from micro-USB to HDMI.
253</dd>
254
255<dt>S/PDIF</dt>
256<dd>
257Sony/Philips Digital Interface Format is an interconnect for uncompressed PCM.
Clay Murphy3a7af3a2014-09-09 17:29:09 -0700258See Wikipedia article <a href="http://en.wikipedia.org/wiki/S/PDIF"
Glenn Kasten5df2d522013-09-27 11:50:35 -0700259target="_android">S/PDIF</a>.
260</dd>
261
262<dt>USB</dt>
263<dd>
264Universal Serial Bus.
Clay Murphy3a7af3a2014-09-09 17:29:09 -0700265See Wikipedia article <a href="http://en.wikipedia.org/wiki/USB" target="_android">USB</a>.
Glenn Kasten5df2d522013-09-27 11:50:35 -0700266</dd>
267
268</dl>
269
270<h4 id="intraDeviceTerms">Intra-device interconnect</h4>
271
272<p>
273These technologies connect internal audio components within a given
274device, and are not visible without disassembling the device. The HAL
275implementor may need to be aware of these, but not the end user.
276</p>
277
278See these Wikipedia articles:
279<ul>
Clay Murphy3a7af3a2014-09-09 17:29:09 -0700280<li><a href="http://en.wikipedia.org/wiki/General-purpose_input/output"
Glenn Kasten5df2d522013-09-27 11:50:35 -0700281target="_android">GPIO</a></li>
Clay Murphy3a7af3a2014-09-09 17:29:09 -0700282<li><a href="http://en.wikipedia.org/wiki/I%C2%B2C" target="_android">I²C</a></li>
283<li><a href="http://en.wikipedia.org/wiki/I%C2%B2S" target="_android">I²S</a></li>
284<li><a href="http://en.wikipedia.org/wiki/McASP" target="_android">McASP</a></li>
285<li><a href="http://en.wikipedia.org/wiki/SLIMbus" target="_android">SLIMbus</a></li>
286<li><a href="http://en.wikipedia.org/wiki/Serial_Peripheral_Interface_Bus"
Glenn Kasten5df2d522013-09-27 11:50:35 -0700287target="_android">SPI</a></li>
288</ul>
289
290<h3 id="signalTerms">Audio Signal Path</h3>
291
292<p>
293These terms are related to the signal path that audio data follows from
294an application to the transducer, or vice-versa.
295</p>
296
Glenn Kasten795a9de2014-01-24 08:58:56 -0800297<dl>
298
Glenn Kasten5df2d522013-09-27 11:50:35 -0700299<dt>ADC</dt>
300<dd>
301Analog to digital converter, a module that converts an analog signal
302(continuous in both time and amplitude) to a digital signal (discrete in
303both time and amplitude). Conceptually, an ADC consists of a periodic
304sample-and-hold followed by a quantizer, although it does not have to
305be implemented that way. An ADC is usually preceded by a low-pass filter
306to remove any high frequency components that are not representable using
307the desired sample rate. See Wikipedia article
Clay Murphy3a7af3a2014-09-09 17:29:09 -0700308<a href="http://en.wikipedia.org/wiki/Analog-to-digital_converter"
Glenn Kasten5df2d522013-09-27 11:50:35 -0700309target="_android">Analog-to-digital_converter</a>.
310</dd>
311
312<dt>AP</dt>
313<dd>
314Application processor, the main general-purpose computer on a mobile device.
315</dd>
316
317<dt>codec</dt>
318<dd>
319Coder-decoder, a module that encodes and/or decodes an audio signal
320from one representation to another. Typically this is analog to PCM, or PCM to analog.
321Strictly, the term "codec" is reserved for modules that both encode and decode,
322however it can also more loosely refer to only one of these.
323See Wikipedia article
Clay Murphy3a7af3a2014-09-09 17:29:09 -0700324<a href="http://en.wikipedia.org/wiki/Audio_codec" target="_android">Audio codec</a>.
Glenn Kasten5df2d522013-09-27 11:50:35 -0700325</dd>
326
327<dt>DAC</dt>
328<dd>
329Digital to analog converter, a module that converts a digital signal
330(discrete in both time and amplitude) to an analog signal
331(continuous in both time and amplitude). A DAC is usually followed by
332a low-pass filter to remove any high frequency components introduced
333by digital quantization.
334See Wikipedia article
Clay Murphy3a7af3a2014-09-09 17:29:09 -0700335<a href="http://en.wikipedia.org/wiki/Digital-to-analog_converter"
Glenn Kasten5df2d522013-09-27 11:50:35 -0700336target="_android">Digital-to-analog converter</a>.
337</dd>
338
339<dt>DSP</dt>
340<dd>
341Digital Signal Processor, an optional component which is typically located
342after the application processor (for output), or before the application processor (for input).
343The primary purpose of a DSP is to off-load the application processor,
344and provide signal processing features at a lower power cost.
345</dd>
346
347<dt>PDM</dt>
348<dd>
349Pulse-density modulation
350is a form of modulation used to represent an analog signal by a digital signal,
351where the relative density of 1s versus 0s indicates the signal level.
352It is commonly used by digital to analog converters.
353See Wikipedia article
Clay Murphy3a7af3a2014-09-09 17:29:09 -0700354<a href="http://en.wikipedia.org/wiki/Pulse-density_modulation"
Glenn Kasten5df2d522013-09-27 11:50:35 -0700355target="_android">Pulse-density modulation</a>.
356</dd>
357
358<dt>PWM</dt>
359<dd>
360Pulse-width modulation
361is a form of modulation used to represent an analog signal by a digital signal,
362where the relative width of a digital pulse indicates the signal level.
363It is commonly used by analog to digital converters.
364See Wikipedia article
Clay Murphy3a7af3a2014-09-09 17:29:09 -0700365<a href="http://en.wikipedia.org/wiki/Pulse-width_modulation"
Glenn Kasten5df2d522013-09-27 11:50:35 -0700366target="_android">Pulse-width modulation</a>.
367</dd>
368
Glenn Kasten795a9de2014-01-24 08:58:56 -0800369</dl>
Glenn Kasten5df2d522013-09-27 11:50:35 -0700370
Glenn Kasten963fd952013-04-18 17:26:23 -0700371<h2 id="androidSpecificTerms">Android-Specific Terms</h2>
372
373<p>
Clay Murphyc28f2372013-09-25 16:13:40 -0700374These are terms specific to the Android audio framework, or that
Glenn Kasten963fd952013-04-18 17:26:23 -0700375may have a special meaning within Android beyond their general meaning.
376</p>
377
378<dl>
379
380<dt>ALSA</dt>
381<dd>
382Advanced Linux Sound Architecture. As the name suggests, it is an audio
383framework primarily for Linux, but it has influenced other systems.
384See Wikipedia article
Clay Murphy3a7af3a2014-09-09 17:29:09 -0700385<a href="http://en.wikipedia.org/wiki/Advanced_Linux_Sound_Architecture" target="_android">ALSA</a>
Glenn Kasten963fd952013-04-18 17:26:23 -0700386for the general definition. As used within Android, it refers primarily
387to the kernel audio framework and drivers, not to the user-mode API. See
388tinyalsa.
389</dd>
390
Glenn Kasten298f3822013-06-12 17:17:36 -0700391<dt>AudioEffect</dt>
392<dd>
393An API and implementation framework for output (post-processing) effects
394and input (pre-processing) effects. The API is defined at
Glenn Kasten5df2d522013-09-27 11:50:35 -0700395<a href="http://developer.android.com/reference/android/media/audiofx/AudioEffect.html" target="_android">android.media.audiofx.AudioEffect</a>.
Glenn Kasten298f3822013-06-12 17:17:36 -0700396</dd>
397
Glenn Kasten963fd952013-04-18 17:26:23 -0700398<dt>AudioFlinger</dt>
399<dd>
400The sound server implementation for Android. AudioFlinger
401runs within the mediaserver process. See Wikipedia article
Clay Murphy3a7af3a2014-09-09 17:29:09 -0700402<a href="http://en.wikipedia.org/wiki/Sound_server" target="_android">Sound server</a>
Glenn Kasten963fd952013-04-18 17:26:23 -0700403for the generic definition.
404</dd>
405
Glenn Kastenfdc7b7b2013-10-28 11:11:34 -0700406<dt>audio focus</dt>
407<dd>
408A set of APIs for managing audio interactions across multiple independent apps.
409See <a href="http://developer.android.com/training/managing-audio/audio-focus.html">Managing Audio
410Focus</a> and the focus-related methods and constants of
411<a href="http://developer.android.com/reference/android/media/AudioManager.html">android.media.AudioManager</a>.
412</dd>
413
Glenn Kasten963fd952013-04-18 17:26:23 -0700414<dt>AudioMixer</dt>
415<dd>
416The module within AudioFlinger responsible for
417combining multiple tracks and applying attenuation
418(volume) and certain effects. The Wikipedia article
Clay Murphy3a7af3a2014-09-09 17:29:09 -0700419<a href="http://en.wikipedia.org/wiki/Audio_mixing_(recorded_music)" target="_android">Audio mixing (recorded music)</a>
Glenn Kasten963fd952013-04-18 17:26:23 -0700420may be useful for understanding the generic
421concept. But that article describes a mixer more as a hardware device
422or a software application, rather than a software module within a system.
423</dd>
424
Glenn Kasten5df2d522013-09-27 11:50:35 -0700425<dt>audio policy</dt>
426<dd>
427Service responsible for all actions that require a policy decision
428to be made first, such as opening a new I/O stream, re-routing after a
429change and stream volume management.
430</dd>
431
Glenn Kasten963fd952013-04-18 17:26:23 -0700432<dt>AudioRecord</dt>
433<dd>
434The primary low-level client API for receiving data from an audio
Clay Murphyc28f2372013-09-25 16:13:40 -0700435input device such as microphone. The data is usually in pulse-code modulation
436(PCM) format.
Glenn Kasten5df2d522013-09-27 11:50:35 -0700437The API is defined at
438<a href="http://developer.android.com/reference/android/media/AudioRecord.html"
439target="_android">android.media.AudioRecord</a>.
440</dd>
Glenn Kasten963fd952013-04-18 17:26:23 -0700441
442<dt>AudioResampler</dt>
443<dd>
Glenn Kasten46ac61c2014-01-24 08:59:11 -0800444The module within AudioFlinger responsible for
445<a href="audio_src.html">sample rate conversion</a>.
Glenn Kasten963fd952013-04-18 17:26:23 -0700446</dd>
447
Glenn Kasten963fd952013-04-18 17:26:23 -0700448<dt>AudioTrack</dt>
449<dd>
450The primary low-level client API for sending data to an audio output
451device such as a speaker. The data is usually in PCM format.
Glenn Kasten5df2d522013-09-27 11:50:35 -0700452The API is defined at
453<a href="http://developer.android.com/reference/android/media/AudioTrack.html"
454target="_android">android.media.AudioTrack</a>.
Glenn Kasten963fd952013-04-18 17:26:23 -0700455</dd>
456
457<dt>client</dt>
458<dd>
459Usually same as application or app, but sometimes the "client" of
460AudioFlinger is actually a thread running within the mediaserver system
461process. An example of that is when playing media that is decoded by a
462MediaPlayer object.
463</dd>
464
465<dt>HAL</dt>
466<dd>
467Hardware Abstraction Layer. HAL is a generic term in Android. With
468respect to audio, it is a layer between AudioFlinger and the kernel
469device driver with a C API, which replaces the earlier C++ libaudio.
470</dd>
471
472<dt>FastMixer</dt>
473<dd>
474A thread within AudioFlinger that services lower latency "fast tracks"
475and drives the primary output device.
476</dd>
477
478<dt>fast track</dt>
479<dd>
480An AudioTrack client with lower latency but fewer features, on some devices.
481</dd>
482
483<dt>MediaPlayer</dt>
484<dd>
485A higher-level client API than AudioTrack, for playing either encoded
Clay Murphyc28f2372013-09-25 16:13:40 -0700486content, or content which includes multimedia audio and video tracks.
Glenn Kasten963fd952013-04-18 17:26:23 -0700487</dd>
488
Glenn Kasten298f3822013-06-12 17:17:36 -0700489<dt>media.log</dt>
490<dd>
491An AudioFlinger debugging feature, available in custom builds only,
492for logging audio events to a circular buffer where they can then be
493dumped retroactively when needed.
494</dd>
495
Glenn Kasten963fd952013-04-18 17:26:23 -0700496<dt>mediaserver</dt>
497<dd>
498An Android system process that contains a number of media-related
499services, including AudioFlinger.
500</dd>
501
502<dt>NBAIO</dt>
503<dd>
504An abstraction for "non-blocking" audio input/output ports used within
505AudioFlinger. The name can be misleading, as some implementations of
506the NBAIO API actually do support blocking. The key implementations of
507NBAIO are for pipes of various kinds.
508</dd>
509
510<dt>normal mixer</dt>
511<dd>
512A thread within AudioFlinger that services most full-featured
513AudioTrack clients, and either directly drives an output device or feeds
Clay Murphyc28f2372013-09-25 16:13:40 -0700514its sub-mix into FastMixer via a pipe.
Glenn Kasten963fd952013-04-18 17:26:23 -0700515</dd>
516
517<dt>OpenSL ES</dt>
518<dd>
519An audio API standard by The Khronos Group. Android versions since
520API level 9 support a native audio API which is based on a subset of
521OpenSL ES 1.0.1.
522</dd>
523
Glenn Kastenfdc7b7b2013-10-28 11:11:34 -0700524<dt>silent mode</dt>
525<dd>
526A user-settable feature to mute the phone ringer and notifications,
527without affecting media playback (music, videos, games) or alarms.
528</dd>
529
Glenn Kasten5df2d522013-09-27 11:50:35 -0700530<dt>SoundPool</dt>
531<dd>
532A higher-level client API than AudioTrack, used for playing sampled
533audio clips. It is useful for triggering UI feedback, game sounds, etc.
534The API is defined at
535<a href="http://developer.android.com/reference/android/media/SoundPool.html"
536target="_android">android.media.SoundPool</a>.
537</dd>
Glenn Kasten5df2d522013-09-27 11:50:35 -0700538
539<dt>Stagefright</dt>
540<dd>
541See <a href="{@docRoot}devices/media.html">Media</a>.
542</dd>
543
Glenn Kasten963fd952013-04-18 17:26:23 -0700544<dt>StateQueue</dt>
545<dd>
546A module within AudioFlinger responsible for synchronizing state
547among threads. Whereas NBAIO is used to pass data, StateQueue is used
548to pass control information.
549</dd>
550
Glenn Kastenfdc7b7b2013-10-28 11:11:34 -0700551<dt>strategy</dt>
552<dd>
553A grouping of stream types with similar behavior, used by the audio policy service.
554</dd>
555
556<dt>stream type</dt>
557<dd>
558An enumeration that expresses a use case for audio output.
559The audio policy implementation uses the stream type, along with other parameters,
560to determine volume and routing decisions.
561Specific stream types are listed at
562<a href="http://developer.android.com/reference/android/media/AudioManager.html">android.media.AudioManager</a>.
563</dd>
564
Glenn Kasten298f3822013-06-12 17:17:36 -0700565<dt>tee sink</dt>
566<dd>
Glenn Kasten37784a52014-02-03 11:57:33 -0800567See the separate article on tee sink in
568<a href="audio_debugging.html#teeSink">Audio Debugging</a>.
Glenn Kasten298f3822013-06-12 17:17:36 -0700569</dd>
570
Glenn Kasten963fd952013-04-18 17:26:23 -0700571<dt>tinyalsa</dt>
572<dd>
573A small user-mode API above ALSA kernel with BSD license, recommended
Clay Murphyc28f2372013-09-25 16:13:40 -0700574for use in HAL implementations.
Glenn Kasten963fd952013-04-18 17:26:23 -0700575</dd>
576
Glenn Kastenfdc7b7b2013-10-28 11:11:34 -0700577<dt>ToneGenerator</dt>
578<dd>
579A higher-level client API than AudioTrack, used for playing DTMF signals.
580See the Wikipedia article
Clay Murphy3a7af3a2014-09-09 17:29:09 -0700581<a href="http://en.wikipedia.org/wiki/Dual-tone_multi-frequency_signaling"
Glenn Kastenfdc7b7b2013-10-28 11:11:34 -0700582target="_android">Dual-tone multi-frequency signaling</a>,
583and the API definition at
584<a href="http://developer.android.com/reference/android/media/ToneGenerator.html"
585target="_android">android.media.ToneGenerator</a>.
586</dd>
587
Glenn Kasten963fd952013-04-18 17:26:23 -0700588<dt>track</dt>
589<dd>
590An audio stream, controlled by the AudioTrack API.
591</dd>
592
Glenn Kastenfdc7b7b2013-10-28 11:11:34 -0700593<dt>volume attenuation curve</dt>
594<dd>
595A device-specific mapping from a generic volume index to a particular attenuation factor
596for a given output.
597</dd>
598
599<dt>volume index</dt>
600<dd>
601A unitless integer that expresses the desired relative volume of a stream.
602The volume-related APIs of
603<a href="http://developer.android.com/reference/android/media/AudioManager.html">android.media.AudioManager</a>
604operate in volume indices rather than absolute attenuation factors.
605</dd>
606
Glenn Kasten963fd952013-04-18 17:26:23 -0700607</dl>
608
Glenn Kasten46ac61c2014-01-24 08:59:11 -0800609<h2 id="srcTerms">Sample Rate Conversion</h2>
610
Clay Murphy3a7af3a2014-09-09 17:29:09 -0700611<dl>
612
613<dt>downsample</dt>
614<dd>To resample, where sink sample rate &lt; source sample rate.</dd>
615
616<dt>Nyquist frequency</dt>
617<dd>
618The Nyquist frequency, equal to 1/2 of a given sample rate, is the
619maximum frequency component that can be represented by a discretized
620signal at that sample rate. For example, the human hearing range is
621typically assumed to extend up to approximately 20 kHz, and so a digital
622audio signal must have a sample rate of at least 40 kHz to represent that
623range. In practice, sample rates of 44.1 kHz and 48 kHz are commonly
624used, with Nyquist frequencies of 22.05 kHz and 24 kHz respectively.
625See
626<a href="http://en.wikipedia.org/wiki/Nyquist_frequency" target="_android">Nyquist frequency</a>
627and
628<a href="http://en.wikipedia.org/wiki/Hearing_range" target="_android">Hearing range</a>
629for more information.
630</dd>
631
632<dt>resampler</dt>
633<dd>Synonym for sample rate converter.</dd>
634
635<dt>resampling</dt>
636<dd>The process of converting sample rate.</dd>
637
638<dt>sample rate converter</dt>
639<dd>A module that resamples.</dd>
640
641<dt>sink</dt>
642<dd>The output of a resampler.</dd>
643
644<dt>source</dt>
645<dd>The input to a resampler.</dd>
646
647<dt>upsample</dt>
648<dd>To resample, where sink sample rate &gt; source sample rate.</dd>
649
650</dl>
Glenn Kasten46ac61c2014-01-24 08:59:11 -0800651