~/talk

Understanding and Implementing Audio on Android

Talkat droidcon San Francisco 2017 · 2017-11-05..11-06· [android]
links:none on file

Explains Android audio pipeline from file → resampling/effects/mixer → DAC and why kernel-timed consumption creates strict deadlines that cause dropouts; recommends using SoundPool (preload samples into memory, set max streams — we use 5) for low-latency UI sounds and MediaPlayer for longer or one-off tracks and emergencies (preempt others via audio focus). Notes ExoPlayer is considered but not used. Surprising details: Bluetooth uses a max volume of 15 vs 10 for regular streams, and problems remain — slider overload, wake-from-sleep sounds, and theme-change load latency.

AI-written summary · about

  1. 0:00Introduction to audio on Android
  2. 2:05Audio latency and processing
  3. 3:08Media Player implementation
  4. 6:37SoundPool for dynamic sounds
  5. 9:25ExoPlayer overview
  6. 10:48Audio focus and multi-app handling
  7. 13:58Case study and implementation tips
  8. 15:43Challenges and unresolved issues
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.