Lines Matching refs:rate
234 status_t setPlaybackSettings(const AudioPlaybackRate& rate) in setPlaybackSettings() argument
238 data.writeFloat(rate.mSpeed); in setPlaybackSettings()
239 data.writeFloat(rate.mPitch); in setPlaybackSettings()
240 data.writeInt32((int32_t)rate.mFallbackMode); in setPlaybackSettings()
241 data.writeInt32((int32_t)rate.mStretchMode); in setPlaybackSettings()
246 status_t getPlaybackSettings(AudioPlaybackRate* rate /* nonnull */) in getPlaybackSettings() argument
253 *rate = AUDIO_PLAYBACK_RATE_DEFAULT; in getPlaybackSettings()
254 rate->mSpeed = reply.readFloat(); in getPlaybackSettings()
255 rate->mPitch = reply.readFloat(); in getPlaybackSettings()
256 rate->mFallbackMode = (AudioTimestretchFallbackMode)reply.readInt32(); in getPlaybackSettings()
257 rate->mStretchMode = (AudioTimestretchStretchMode)reply.readInt32(); in getPlaybackSettings()
739 AudioPlaybackRate rate = AUDIO_PLAYBACK_RATE_DEFAULT; in onTransact() local
740 rate.mSpeed = data.readFloat(); in onTransact()
741 rate.mPitch = data.readFloat(); in onTransact()
742 rate.mFallbackMode = (AudioTimestretchFallbackMode)data.readInt32(); in onTransact()
743 rate.mStretchMode = (AudioTimestretchStretchMode)data.readInt32(); in onTransact()
744 reply->writeInt32(setPlaybackSettings(rate)); in onTransact()
749 AudioPlaybackRate rate = AUDIO_PLAYBACK_RATE_DEFAULT; in onTransact() local
750 status_t err = getPlaybackSettings(&rate); in onTransact()
753 reply->writeFloat(rate.mSpeed); in onTransact()
754 reply->writeFloat(rate.mPitch); in onTransact()
755 reply->writeInt32((int32_t)rate.mFallbackMode); in onTransact()
756 reply->writeInt32((int32_t)rate.mStretchMode); in onTransact()