Crate android_audio

Source

ModulesΒ§

libaaudio_stub πŸ”’
Stub implementation of Android AAudio NDK

StructsΒ§

AAudioStream πŸ”’
AAudioStreamBuilder πŸ”’
AAudioStreamPtr πŸ”’
AndroidAudioStreamCommit πŸ”’
AndroidAudioStreamSource πŸ”’
AndroidAudioStreamSourceGenerator
AudioStream πŸ”’
ParkedPlaybackStream πŸ”’
An open, started playback AAudio stream whose AudioStream was dropped.
PlaybackParams πŸ”’
Parameters a playback AAudio stream was opened with.
PlaybackParking πŸ”’
Keeps the AAudio stream of a dropped playback stream open for a short while, so the next playback stream with the same parameters reuses it instead of opening a new one.
PlaybackParkingState πŸ”’

EnumsΒ§

AAudioError
AndroidAudioStreamDirection πŸ”’

ConstantsΒ§

AAUDIO_FORMAT_PCM_I16 πŸ”’
AAUDIO_FORMAT_PCM_I32 πŸ”’
AAUDIO_OK πŸ”’
AAUDIO_STREAM_STATE_STARTED πŸ”’
AAUDIO_STREAM_STATE_STARTING πŸ”’
AAUDIO_STREAM_STATE_UNKNOWN πŸ”’
PLAYBACK_PARKING_TIMEOUT πŸ”’
How long a dropped playback stream’s AAudio stream stays open, waiting for reuse, before it is closed. Long enough to span the STOP, RELEASE, PREPARE and START of a guest XRUN recovery, which take milliseconds, and short enough that the host stops playing soon after the guest really stops.

TraitsΒ§

AudioPermissionDelegate
Asks the host whether the guest may capture audio. Implementations must not block: they run on the audio executor. One delegate is shared by all capture streams of a card, so streams waiting at the same time share one request and all receive its answer.

FunctionsΒ§

AAudioStreamBuilder_delete πŸ”’ ⚠
AAudioStreamBuilder_openStream πŸ”’ ⚠
AAudioStreamBuilder_setBufferCapacityInFrames πŸ”’ ⚠
AAudioStreamBuilder_setChannelCount πŸ”’ ⚠
AAudioStreamBuilder_setDirection πŸ”’ ⚠
AAudioStreamBuilder_setFormat πŸ”’ ⚠
AAudioStreamBuilder_setSampleRate πŸ”’ ⚠
AAudioStream_close πŸ”’ ⚠
AAudioStream_getBufferSizeInFrames πŸ”’ ⚠
AAudioStream_read πŸ”’ ⚠
AAudioStream_requestStart πŸ”’ ⚠
AAudioStream_requestStop πŸ”’ ⚠
AAudioStream_waitForStateChange πŸ”’ ⚠
AAudioStream_write πŸ”’ ⚠
AAudio_createStreamBuilder πŸ”’ ⚠
create_and_open_aaudio_stream πŸ”’
reap_parked_playback πŸ”’
Closes the parked playback stream once it has been parked for longer than the timeout. Exits when nothing is parked, or when the PlaybackParking is gone.
to_aaudio_format πŸ”’

Type AliasesΒ§

AaudioFormatT πŸ”’
AaudioResultT πŸ”’
AaudioStreamStateT πŸ”’