AAudioPlaybackParameters

Structure for common playback params.

Summary

Call AAudioStream_setPlaybackParameters to control playback behavior. Call AAudioStream_getPlaybackParameters to query current playback parameters.

Public attributes

fallbackMode
pitch
float
Increases or decreases the tonal frequency of the audio content.
speed
float
Increases or decreases the time to play back a set of audio frames.
stretchMode

Public attributes

fallbackMode

Declared in aaudio/AAudio.h
AAudio_FallbackMode AAudioPlaybackParameters::fallbackMode

pitch

Declared in aaudio/AAudio.h
float AAudioPlaybackParameters::pitch

Increases or decreases the tonal frequency of the audio content.

It is expressed as a multiplicative factor, where normal pitch is 1.0f. The pitch must be in range of [0.25f, 4.0f].

speed

Declared in aaudio/AAudio.h
float AAudioPlaybackParameters::speed

Increases or decreases the time to play back a set of audio frames.

Normal speed is 1.0f. The speed must in range of [0.01f, 20.0f].

stretchMode

Declared in aaudio/AAudio.h
AAudio_StretchMode AAudioPlaybackParameters::stretchMode