Home
last modified time | relevance | path

Searched refs:rightVolume (Results 1 – 25 of 25) sorted by relevance

/frameworks/base/media/jni/soundpool/
DSoundPool.cpp46 bool checkVolume(float *leftVolume, float *rightVolume) in checkVolume() argument
49 *rightVolume != std::clamp(*rightVolume, 0.f, 1.f)) { in checkVolume()
50 ALOGI("volume l=%f r=%f out of (0.f, 1.f) bounds, using 1.f", *leftVolume, *rightVolume); in checkVolume()
52 *leftVolume = *rightVolume = 1.f; in checkVolume()
117 int32_t SoundPool::play(int32_t soundID, float leftVolume, float rightVolume, in play() argument
121 __func__, soundID, leftVolume, rightVolume, priority, loop, rate); in play()
126 if (checkVolume(&leftVolume, &rightVolume) in play()
139 sound, soundID, leftVolume, rightVolume, priority, loop, rate, playerIId); in play()
194 void SoundPool::setVolume(int32_t streamID, float leftVolume, float rightVolume) in setVolume() argument
196 ALOGV("%s(%d, %f %f)", __func__, streamID, leftVolume, rightVolume); in setVolume()
[all …]
DStream.cpp116 void Stream::setVolume_l(float leftVolume, float rightVolume) in setVolume_l() argument
119 mRightVolume = rightVolume; in setVolume_l()
121 mAudioTrack->setVolume(leftVolume, rightVolume); in setVolume_l()
125 void Stream::setVolume(int32_t streamID, float leftVolume, float rightVolume) in setVolume() argument
129 setVolume_l(leftVolume, rightVolume); in setVolume()
157 float leftVolume, float rightVolume, int32_t priority, int32_t loop, float rate) in setPlay() argument
165 mRightVolume = rightVolume; in setPlay()
276 float leftVolume, float rightVolume, int32_t priority, int32_t loop, float rate, in play_l() argument
281 __func__, this, sound->getSoundID(), nextStreamID, leftVolume, rightVolume, in play_l()
364 mAudioTrack->setVolume(leftVolume, rightVolume); in play_l()
[all …]
DStream.h101 void setVolume(int32_t streamID, float leftVolume, float rightVolume);
106 float leftVolume, float rightVolume, int32_t priority, int32_t loop, float rate);
160 float leftVolume, float rightVolume, int priority, int loop, float rate,
163 void setVolume_l(float leftVolume, float rightVolume) REQUIRES(mLock);
DSoundPool.h41 int32_t play(int32_t soundID, float leftVolume, float rightVolume, int32_t priority,
48 void setVolume(int32_t streamID, float leftVolume, float rightVolume);
Dandroid_media_SoundPool.cpp369 jfloat leftVolume, jfloat rightVolume, jint priority, jint loop, in android_media_SoundPool_play() argument
378 rightVolume, in android_media_SoundPool_play()
432 jfloat leftVolume, jfloat rightVolume) in android_media_SoundPool_setVolume() argument
437 soundPool->setVolume(channelID, (float) leftVolume, (float) rightVolume); in android_media_SoundPool_setVolume()
DStreamManager.cpp156 int32_t soundID, float leftVolume, float rightVolume, in queueForPlay() argument
161 " playerIId=%d)", __func__, sound.get(), soundID, leftVolume, rightVolume, priority, in queueForPlay()
248 streamID, sound, soundID, leftVolume, rightVolume, priority, loop, rate); in queueForPlay()
DStreamManager.h400 int32_t soundID, float leftVolume, float rightVolume,
/frameworks/base/media/java/android/media/
DSoundPool.java314 public final int play(int soundID, float leftVolume, float rightVolume, in play() argument
318 return _play(soundID, leftVolume, rightVolume, priority, loop, rate, getPlayerIId()); in play()
389 public final void setVolume(int streamID, float leftVolume, float rightVolume) { in setVolume() argument
394 _setVolume(streamID, leftVolume, rightVolume); in setVolume()
410 void playerSetVolume(boolean muting, float leftVolume, float rightVolume) { in playerSetVolume() argument
518 private native final int _play(int soundID, float leftVolume, float rightVolume, in _play() argument
521 private native final void _setVolume(int streamID, float leftVolume, float rightVolume); in _setVolume() argument
DPlayerBase.java256 void baseSetVolume(float leftVolume, float rightVolume) { in baseSetVolume() argument
259 mRightVolume = rightVolume; in baseSetVolume()
326 abstract void playerSetVolume(boolean muting, float leftVolume, float rightVolume); in playerSetVolume() argument
DHwAudioSource.java74 void playerSetVolume(boolean muting, float leftVolume, float rightVolume) { in playerSetVolume() argument
DAudioTrack.java2719 void playerSetVolume(boolean muting, float leftVolume, float rightVolume) { in playerSetVolume() argument
2721 rightVolume = clampGainOrLevel(muting ? 0.0f : rightVolume); in playerSetVolume()
2723 native_setVolume(leftVolume, rightVolume); in playerSetVolume()
4471 private native final void native_setVolume(float leftVolume, float rightVolume); in native_setVolume() argument
DMediaPlayer.java2386 public void setVolume(float leftVolume, float rightVolume) { in setVolume() argument
2387 baseSetVolume(leftVolume, rightVolume); in setVolume()
2391 void playerSetVolume(boolean muting, float leftVolume, float rightVolume) { in playerSetVolume() argument
2392 _setVolume(muting ? 0.0f : leftVolume, muting ? 0.0f : rightVolume); in playerSetVolume()
2395 private native void _setVolume(float leftVolume, float rightVolume); in _setVolume() argument
/frameworks/av/media/libeffects/lvm/wrapper/Reverb/
DEffectReverb.cpp165 LVM_INT16 rightVolume; member
427 pContext->rightVolume != pContext->prevRightVolume) && in process()
434 float incr = (((float)pContext->rightVolume / 4096) - vr) / frameCount; in process()
444 pContext->prevRightVolume = pContext->rightVolume; in process()
447 pContext->rightVolume != REVERB_UNIT_VOLUME) { in process()
450 pContext->OutFrames[FCC_2 * i + 1] *= ((float)pContext->rightVolume / 4096); in process()
454 pContext->prevRightVolume = pContext->rightVolume; in process()
653 pContext->rightVolume = REVERB_UNIT_VOLUME; in Reverb_init()
1948 pContext->rightVolume = (LVM_INT16)((*((uint32_t*)pCmdData + 1) + (1 << 11)) >> 12); in Reverb_command()
1957 pContext->rightVolume = REVERB_UNIT_VOLUME; in Reverb_command()
[all …]
/frameworks/base/media/tests/SoundPoolTest/src/com/android/
DSoundPoolTest.java322 float rightVolume = (float) Math.cos(radians); in TestVolume() local
323 mSoundPool.setVolume(id, leftVolume, rightVolume); in TestVolume()
324 if (DEBUG) Log.d(LOG_TAG, "Change volume (" + leftVolume + "," + rightVolume + ")"); in TestVolume()
/frameworks/av/media/libmedia/
Dmediaplayer.cpp711 status_t MediaPlayer::setVolume(float leftVolume, float rightVolume) in setVolume() argument
713 ALOGV("MediaPlayer::setVolume(%f, %f)", leftVolume, rightVolume); in setVolume()
716 mRightVolume = rightVolume; in setVolume()
718 return mPlayer->setVolume(leftVolume, rightVolume); in setVolume()
DIMediaPlayer.cpp350 status_t setVolume(float leftVolume, float rightVolume) in setVolume() argument
355 data.writeFloat(rightVolume); in setVolume()
829 float rightVolume = data.readFloat(); in onTransact() local
830 reply->writeInt32(setVolume(leftVolume, rightVolume)); in onTransact()
/frameworks/av/media/libmedia/include/media/
DIMediaPlayer.h87 virtual status_t setVolume(float leftVolume, float rightVolume) = 0;
Dmediaplayer.h261 status_t setVolume(float leftVolume, float rightVolume);
/frameworks/av/include/media/
DMediaPlayerInterface.h337 virtual status_t setVolume(float leftVolume, float rightVolume) = 0;
/frameworks/av/media/libmediaplayerservice/include/
DMediaPlayerInterface.h337 virtual status_t setVolume(float leftVolume, float rightVolume) = 0;
/frameworks/base/media/jni/
Dandroid_media_MediaPlayer.cpp821 …droid_media_MediaPlayer_setVolume(JNIEnv *env, jobject thiz, jfloat leftVolume, jfloat rightVolume) in android_media_MediaPlayer_setVolume() argument
823 ALOGV("setVolume: left %f right %f", (float) leftVolume, (float) rightVolume); in android_media_MediaPlayer_setVolume()
829 …process_media_player_call( env, thiz, mp->setVolume((float) leftVolume, (float) rightVolume), NULL… in android_media_MediaPlayer_setVolume()
/frameworks/av/media/libeffects/lvm/wrapper/Bundle/
DEffectBundle.cpp3445 uint32_t leftVolume, rightVolume; in Effect_command() local
3465 rightVolume = ((*((uint32_t*)pCmdData + 1))); in Effect_command()
3470 if (rightVolume == 0x1000000) { in Effect_command()
3471 rightVolume -= 1; in Effect_command()
3476 rightdB = android::LVC_Convert_VolToDb(rightVolume); in Effect_command()
/frameworks/av/media/libmediaplayerservice/
DMediaPlayerService.h354 virtual status_t setVolume(float leftVolume, float rightVolume);
DMediaPlayerService.cpp1526 status_t MediaPlayerService::Client::setVolume(float leftVolume, float rightVolume) in setVolume() argument
1528 ALOGV("[%d] setVolume(%f, %f)", mConnId, leftVolume, rightVolume); in setVolume()
1537 return hwp->setVolume(leftVolume, rightVolume); in setVolume()
1539 if (mAudioOutput != 0) mAudioOutput->setVolume(leftVolume, rightVolume); in setVolume()
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-33.jarAndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...