Module ndk::audio

source ·
Available on crate feature audio only.
Expand description

Bindings for AAudioStream and AAudioStreamBuilder

See the NDK guide for design and usage instructions, and the NDK reference for an API overview.

Structs§

Enums§

  • Specifying if audio may or may not be captured by other apps or the system.
  • Value returned the data callback function.
  • AudioContentTypeapi-level-28
    The ContentType attribute describes “what” you are playing. It expresses the general category of the content. This information is optional. But in case it is known (for instance Movie for a movie streaming service or Speech for an audio book application) this information might be used by the audio framework to enforce audio focus.
  • AudioInputPresetapi-level-28
    Defines the audio source. An audio source defines both a default physical source of audio signal, and a recording configuration.
  • AudioUsageapi-level-28
    The Usage attribute expresses “why” you are playing a sound, what is this sound used for. This information is used by certain platforms or routing policies to make more refined volume or routing decisions.

Type Aliases§