Lines Matching defs:rate
186 // minimum number of frames to cover output latency at the sample rate of the content
939 SL_LOGE("Cannot create audio player: unsupported sample rate %u milliHz",
1732 SLresult android_audioPlayer_setPlaybackRateAndConstraints(CAudioPlayer *ap, SLpermille rate,
1738 assert((AUDIOTRACK_MIN_PLAYBACKRATE_PERMILLE <= rate) &&
1739 (rate <= AUDIOTRACK_MAX_PLAYBACKRATE_PERMILLE));
1741 // get the content sample rate
1743 // apply the SL ES playback rate on the AudioTrack as a factor of its content sample rate
1745 ap->mAudioTrack->setSampleRate(contentRate * (rate/1000.0f));
1750 assert((MEDIAPLAYER_MIN_PLAYBACKRATE_PERMILLE <= rate) &&
1751 (rate <= MEDIAPLAYER_MAX_PLAYBACKRATE_PERMILLE));
1753 // apply the SL ES playback rate on the GenericPlayer
1755 ap->mAPlayer->setPlaybackRate((int16_t)rate);