Android Developers Backstage

Episode 85: Focus on Audio


Listen Later

Romain, Jean-Michel, and Tor. Chet is in the distant background (~2,500 miles west of the studio.) In this episode, Romain and Tor talk with Jean-Michel Trivi from the Android audio team. Tune in to learn about hardware speaker design, ducking and attenuation, stream types, audio tagging, audio focus, and more! Links:
  • If your activity is playing any audio, don't forget to declare what stream type the hardware volume keys should control with Activity.setVolumeControlStream(int stream) https://developer.android.com/guide/topics/media-apps/volume-and-earphones.html
  • Since Android L, use AudioAttributes to describe your use case and content for your audio playback: https://developer.android.com/reference/android/media/AudioAttributes.html
  • Use AudioAttributes.getVolumeControlStream() to derive the stream type for volume control in your Activity https://developer.android.com/reference/android/media/AudioAttributes.html#getVolumeControlStream()
  • A summary of what audio focus is, when and how to request and abandon audio focus, and code snippet for your focus listener: https://developer.android.com/guide/topics/media-apps/audio-focus.html
  • And finally, when Jean-Michel isn't working on Android, he's paddling https://youtu.be/tZC2rmUdEVk
Subscribe to the podcast feed or download the audio file directly. Jean-Michelgoogle.com/+JeanMichelTrivi Romaingoogle.com/+RomainGuy@romainguy Torgoogle.com/+TorNorbye@tornorbye Chetgoogle.com/+ChetHaase@chethaase Thanks to continued tolerance and support by our audio engineer, Bryan Gordon.
...more
View all episodesView all episodes
Download on the App Store

Android Developers BackstageBy Android Developers

  • 4.7
  • 4.7
  • 4.7
  • 4.7
  • 4.7

4.7

21 ratings


More shows like Android Developers Backstage

View all
Hanselminutes with Scott Hanselman by Scott Hanselman

Hanselminutes with Scott Hanselman

377 Listeners

The Vergecast by The Verge

The Vergecast

3,662 Listeners

Rebuild by Tatsuhiko Miyagawa

Rebuild

51 Listeners

Accidental Tech Podcast by Marco Arment, Casey Liss, John Siracusa

Accidental Tech Podcast

2,092 Listeners

Upgrade by Relay

Upgrade

1,199 Listeners

Decoder with Nilay Patel by The Verge

Decoder with Nilay Patel

3,138 Listeners

Software Engineering Daily by Software Engineering Daily

Software Engineering Daily

624 Listeners

Under the Radar by Relay

Under the Radar

210 Listeners

Soft Skills Engineering by Jamison Dance and Dave Smith

Soft Skills Engineering

268 Listeners

AWS Podcast by Amazon Web Services

AWS Podcast

203 Listeners

Talking Kotlin by Talking Kotlin

Talking Kotlin

17 Listeners

Now in Android by Now in Android

Now in Android

6 Listeners

Nauka To Lubię by Tomasz Rożek

Nauka To Lubię

9 Listeners

Business Breakdowns by Colossus | Investing & Business Podcasts

Business Breakdowns

343 Listeners

The Pragmatic Engineer by Gergely Orosz

The Pragmatic Engineer

52 Listeners