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()
115 int32_t SoundPool::play(int32_t soundID, float leftVolume, float rightVolume, in play() argument
119 __func__, soundID, leftVolume, rightVolume, priority, loop, rate); in play()
124 if (checkVolume(&leftVolume, &rightVolume) in play()
137 sound, soundID, leftVolume, rightVolume, priority, loop, rate); in play()
191 void SoundPool::setVolume(int32_t streamID, float leftVolume, float rightVolume) in setVolume() argument
193 ALOGV("%s(%d, %f %f)", __func__, streamID, leftVolume, rightVolume); in setVolume()
[all …]
DStream.cpp114 void Stream::setVolume_l(float leftVolume, float rightVolume) in setVolume_l() argument
117 mRightVolume = rightVolume; in setVolume_l()
119 mAudioTrack->setVolume(leftVolume, rightVolume); in setVolume_l()
123 void Stream::setVolume(int32_t streamID, float leftVolume, float rightVolume) in setVolume() argument
127 setVolume_l(leftVolume, rightVolume); in setVolume()
155 float leftVolume, float rightVolume, int32_t priority, int32_t loop, float rate) in setPlay() argument
163 mRightVolume = rightVolume; in setPlay()
276 float leftVolume, float rightVolume, int32_t priority, int32_t loop, float rate, in play_l() argument
287 __func__, this, sound->getSoundID(), nextStreamID, leftVolume, rightVolume, in play_l()
355 newTrack->setVolume(leftVolume, rightVolume); in play_l()
[all …]
DStream.h98 void setVolume(int32_t streamID, float leftVolume, float rightVolume);
103 float leftVolume, float rightVolume, int32_t priority, int32_t loop, float rate);
127 float leftVolume, float rightVolume, int priority, int loop, float rate,
130 void setVolume_l(float leftVolume, float rightVolume) REQUIRES(mLock);
DSoundPool.h38 int32_t play(int32_t soundID, float leftVolume, float rightVolume, int32_t priority,
45 void setVolume(int32_t streamID, float leftVolume, float rightVolume);
Dandroid_media_SoundPool.cpp70 jfloat leftVolume, jfloat rightVolume, jint priority, jint loop, in android_media_SoundPool_play() argument
76 return (jint) ap->play(sampleID, leftVolume, rightVolume, priority, loop, rate); in android_media_SoundPool_play()
126 jfloat leftVolume, jfloat rightVolume) in android_media_SoundPool_setVolume() argument
131 ap->setVolume(channelID, (float) leftVolume, (float) rightVolume); in android_media_SoundPool_setVolume()
DStreamManager.cpp141 int32_t soundID, float leftVolume, float rightVolume, in queueForPlay() argument
145 __func__, sound.get(), soundID, leftVolume, rightVolume, priority, loop, rate); in queueForPlay()
229 streamID, sound, soundID, leftVolume, rightVolume, priority, loop, rate); in queueForPlay()
DStreamManager.h394 int32_t soundID, float leftVolume, float rightVolume,
/frameworks/base/media/java/android/media/
DSoundPool.java303 public final int play(int soundID, float leftVolume, float rightVolume, in play() argument
306 return _play(soundID, leftVolume, rightVolume, priority, loop, rate); in play()
377 public final void setVolume(int streamID, float leftVolume, float rightVolume) { in setVolume() argument
382 _setVolume(streamID, leftVolume, rightVolume); in setVolume()
398 void playerSetVolume(boolean muting, float leftVolume, float rightVolume) { in playerSetVolume() argument
506 private native final int _play(int soundID, float leftVolume, float rightVolume, in _play() argument
509 private native final void _setVolume(int streamID, float leftVolume, float rightVolume); in _setVolume() argument
DPlayerBase.java233 void baseSetVolume(float leftVolume, float rightVolume) { in baseSetVolume() argument
236 mRightVolume = rightVolume; in baseSetVolume()
398 abstract void playerSetVolume(boolean muting, float leftVolume, float rightVolume); in playerSetVolume() argument
DHwAudioSource.java66 void playerSetVolume(boolean muting, float leftVolume, float rightVolume) { in playerSetVolume() argument
DAudioTrack.java2418 void playerSetVolume(boolean muting, float leftVolume, float rightVolume) { in playerSetVolume() argument
2420 rightVolume = clampGainOrLevel(muting ? 0.0f : rightVolume); in playerSetVolume()
2422 native_setVolume(leftVolume, rightVolume); in playerSetVolume()
4104 private native final void native_setVolume(float leftVolume, float rightVolume); in native_setVolume() argument
DMediaPlayer.java2258 public void setVolume(float leftVolume, float rightVolume) { in setVolume() argument
2259 baseSetVolume(leftVolume, rightVolume); in setVolume()
2263 void playerSetVolume(boolean muting, float leftVolume, float rightVolume) { in playerSetVolume() argument
2264 _setVolume(muting ? 0.0f : leftVolume, muting ? 0.0f : rightVolume); in playerSetVolume()
2267 private native void _setVolume(float leftVolume, float rightVolume); in _setVolume() argument
/frameworks/av/media/libeffects/lvm/wrapper/Reverb/
DEffectReverb.cpp163 LVM_INT16 rightVolume; member
421 pContext->rightVolume != pContext->prevRightVolume) && in process()
428 float incr = (((float)pContext->rightVolume / 4096) - vr) / frameCount; in process()
438 pContext->prevRightVolume = pContext->rightVolume; in process()
441 pContext->rightVolume != REVERB_UNIT_VOLUME) { in process()
444 pContext->OutFrames[FCC_2 * i + 1] *= ((float)pContext->rightVolume / 4096); in process()
448 pContext->prevRightVolume = pContext->rightVolume; in process()
665 pContext->rightVolume = REVERB_UNIT_VOLUME; in Reverb_init()
2036 … pContext->rightVolume = (LVM_INT16)((*((uint32_t *)pCmdData + 1) + (1 << 11)) >> 12); in Reverb_command()
2045 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.cpp688 status_t MediaPlayer::setVolume(float leftVolume, float rightVolume) in setVolume() argument
690 ALOGV("MediaPlayer::setVolume(%f, %f)", leftVolume, rightVolume); in setVolume()
693 mRightVolume = rightVolume; in setVolume()
695 return mPlayer->setVolume(leftVolume, rightVolume); in setVolume()
DIMediaPlayer.cpp362 status_t setVolume(float leftVolume, float rightVolume) in setVolume() argument
367 data.writeFloat(rightVolume); in setVolume()
835 float rightVolume = data.readFloat(); in onTransact() local
836 reply->writeInt32(setVolume(leftVolume, rightVolume)); in onTransact()
/frameworks/av/media/libmedia/include/media/
DIMediaPlayer.h86 virtual status_t setVolume(float leftVolume, float rightVolume) = 0;
Dmediaplayer.h250 status_t setVolume(float leftVolume, float rightVolume);
/frameworks/av/media/libmediaplayerservice/include/
DMediaPlayerInterface.h330 virtual status_t setVolume(float leftVolume, float rightVolume) = 0;
/frameworks/av/include/media/
DMediaPlayerInterface.h330 virtual status_t setVolume(float leftVolume, float rightVolume) = 0;
/frameworks/base/media/jni/
Dandroid_media_MediaPlayer.cpp802 …droid_media_MediaPlayer_setVolume(JNIEnv *env, jobject thiz, jfloat leftVolume, jfloat rightVolume) in android_media_MediaPlayer_setVolume() argument
804 ALOGV("setVolume: left %f right %f", (float) leftVolume, (float) rightVolume); in android_media_MediaPlayer_setVolume()
810 …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.cpp3701 uint32_t leftVolume, rightVolume; in Effect_command() local
3721 rightVolume = ((*((uint32_t *)pCmdData + 1))); in Effect_command()
3726 if(rightVolume == 0x1000000){ in Effect_command()
3727 rightVolume -= 1; in Effect_command()
3732 rightdB = android::LVC_Convert_VolToDb(rightVolume); in Effect_command()
/frameworks/av/media/libmediaplayerservice/
DMediaPlayerService.h341 virtual status_t setVolume(float leftVolume, float rightVolume);
DMediaPlayerService.cpp1475 status_t MediaPlayerService::Client::setVolume(float leftVolume, float rightVolume) in setVolume() argument
1477 ALOGV("[%d] setVolume(%f, %f)", mConnId, leftVolume, rightVolume); in setVolume()
1486 return hwp->setVolume(leftVolume, rightVolume); in setVolume()
1488 if (mAudioOutput != 0) mAudioOutput->setVolume(leftVolume, rightVolume); in setVolume()
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...