Searched refs:audioRate (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/media/jni/ |
D | android_media_PlaybackParams.h | 26 AudioPlaybackRate audioRate; member 84 audioRate.mSpeed = env->GetFloatField(params, fields.speed); in fillFromJobject() 85 audioRate.mPitch = env->GetFloatField(params, fields.pitch); in fillFromJobject() 86 audioRate.mFallbackMode = in fillFromJobject() 88 audioRate.mStretchMode = in fillFromJobject() 103 env->SetFloatField(params, fields.speed, (jfloat)audioRate.mSpeed); in asJobject() 104 env->SetFloatField(params, fields.pitch, (jfloat)audioRate.mPitch); in asJobject() 105 env->SetIntField(params, fields.audio_fallback_mode, (jint)audioRate.mFallbackMode); in asJobject() 106 env->SetIntField(params, fields.audio_stretch_mode, (jint)audioRate.mStretchMode); in asJobject()
|
D | android_media_MediaSync.cpp | 326 pbs.speedSet, pbs.audioRate.mSpeed, in android_media_MediaSync_setPlaybackParams() 327 pbs.pitchSet, pbs.audioRate.mPitch, in android_media_MediaSync_setPlaybackParams() 328 pbs.audioFallbackModeSet, pbs.audioRate.mFallbackMode, in android_media_MediaSync_setPlaybackParams() 329 pbs.audioStretchModeSet, pbs.audioRate.mStretchMode); in android_media_MediaSync_setPlaybackParams() 335 rate.mSpeed = pbs.audioRate.mSpeed; in android_media_MediaSync_setPlaybackParams() 339 rate.mPitch = pbs.audioRate.mPitch; in android_media_MediaSync_setPlaybackParams() 343 rate.mFallbackMode = pbs.audioRate.mFallbackMode; in android_media_MediaSync_setPlaybackParams() 347 rate.mStretchMode = pbs.audioRate.mStretchMode; in android_media_MediaSync_setPlaybackParams() 375 AudioPlaybackRate &audioRate = pbs.audioRate; in android_media_MediaSync_getPlaybackParams() local 376 sync->getPlaybackParams(&audioRate); in android_media_MediaSync_getPlaybackParams() [all …]
|
D | android_media_MediaPlayer.cpp | 486 pbp.speedSet, pbp.audioRate.mSpeed, in android_media_MediaPlayer_setPlaybackParams() 487 pbp.pitchSet, pbp.audioRate.mPitch, in android_media_MediaPlayer_setPlaybackParams() 488 pbp.audioFallbackModeSet, pbp.audioRate.mFallbackMode, in android_media_MediaPlayer_setPlaybackParams() 489 pbp.audioStretchModeSet, pbp.audioRate.mStretchMode); in android_media_MediaPlayer_setPlaybackParams() 496 rate.mSpeed = pbp.audioRate.mSpeed; in android_media_MediaPlayer_setPlaybackParams() 500 rate.mPitch = pbp.audioRate.mPitch; in android_media_MediaPlayer_setPlaybackParams() 504 rate.mFallbackMode = pbp.audioRate.mFallbackMode; in android_media_MediaPlayer_setPlaybackParams() 508 rate.mStretchMode = pbp.audioRate.mStretchMode; in android_media_MediaPlayer_setPlaybackParams() 530 AudioPlaybackRate &audioRate = pbp.audioRate; in android_media_MediaPlayer_getPlaybackParams() local 532 env, thiz, mp->getPlaybackSettings(&audioRate), in android_media_MediaPlayer_getPlaybackParams() [all …]
|
/frameworks/av/media/libaudioclient/tests/ |
D | audiotrack_tests.cpp | 124 AudioPlaybackRate audioRate; in TEST() local 125 audioRate = ap->getAudioTrackHandle()->getPlaybackRate(); in TEST() 126 std::cerr << "playback speed :: " << audioRate.mSpeed << std::endl in TEST() 127 << "playback pitch :: " << audioRate.mPitch << std::endl; in TEST() 128 audioRate.mSpeed = 2.0f; in TEST() 129 audioRate.mPitch = 2.0f; in TEST() 130 audioRate.mStretchMode = AUDIO_TIMESTRETCH_STRETCH_VOICE; in TEST() 131 audioRate.mFallbackMode = AUDIO_TIMESTRETCH_FALLBACK_MUTE; in TEST() 132 EXPECT_TRUE(isAudioPlaybackRateValid(audioRate)); in TEST() 133 if (OK != ap->getAudioTrackHandle()->setPlaybackRate(audioRate)) { in TEST() [all …]
|
/frameworks/base/core/jni/ |
D | android_media_AudioTrack.cpp | 839 pbp.speedSet, pbp.audioRate.mSpeed, in android_media_AudioTrack_set_playback_params() 840 pbp.pitchSet, pbp.audioRate.mPitch, in android_media_AudioTrack_set_playback_params() 841 pbp.audioFallbackModeSet, pbp.audioRate.mFallbackMode, in android_media_AudioTrack_set_playback_params() 842 pbp.audioStretchModeSet, pbp.audioRate.mStretchMode); in android_media_AudioTrack_set_playback_params() 849 rate.mSpeed = pbp.audioRate.mSpeed; in android_media_AudioTrack_set_playback_params() 853 rate.mPitch = pbp.audioRate.mPitch; in android_media_AudioTrack_set_playback_params() 857 rate.mFallbackMode = pbp.audioRate.mFallbackMode; in android_media_AudioTrack_set_playback_params() 861 rate.mStretchMode = pbp.audioRate.mStretchMode; in android_media_AudioTrack_set_playback_params() 884 pbs.audioRate = lpTrack->getPlaybackRate(); in android_media_AudioTrack_get_playback_params()
|