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
|
See AAudio_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
|
See AAudio_StretchMode.
|
Public attributes
pitch
Declared inaaudio/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 inaaudio/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 inaaudio/AAudio.h
AAudio_StretchMode AAudioPlaybackParameters::stretchMode
See AAudio_StretchMode.
One of AAUDIO_STRETCH_MODE_DEFAULT or AAUDIO_STRETCH_MODE_VOICE.