Audio Manager Library

The audio manager serves as a central point of control for the mode of operation of the audio subsystem. It also provides interfaces to audio devices.

This Audio Manager library provides functions to get and set properties for audio device status, volume, routing, and concurrency. You use audio manager handles, which are references to audio sources. You can also add and remove audio device events to notify users that are using audio devices. The audio manager allows applications to set up and process events from audio devices supported on the target.

The audio manager provides the following features:

  • automatic routing and manual routing of the pcm preferred path
  • audio stream type identification
  • audio concurrency policy management
  • audio device monitoring and mounting (for example, headset, A2DP, HDMI)

Applications can notify the audio manager of the type of audio streams that are opening or closing, and can link specific PCM streams with those types to allow for advanced concurrency use cases (for example, using notifications to automatically trigger audio ducking in the media player). The application can also override the default preferred routing table for the type, allowing the user to choose the loud speaker rather than the wired headset, for example.

The use of the audio manager is optional, but if you choose not to use audio manager, audio in your application is managed as a "default" type audio stream and has few privileges associated with it. You would use the Audio Manager library when you want your application to have tighter integration with the audio system or if you want to use any of the above features.

Last modified: 2014-05-14

Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus