Home
last modified time | relevance | path

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

/frameworks/base/media/jni/soundpool/
DSoundPool.cpp46 bool checkVolume(float *leftVolume, float *rightVolume) in checkVolume() argument
48 if (*leftVolume != std::clamp(*leftVolume, 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
118 mLeftVolume = leftVolume; 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
164 mLeftVolume = leftVolume; 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
377 leftVolume, 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
258 mLeftVolume = leftVolume; 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
2720 leftVolume = clampGainOrLevel(muting ? 0.0f : leftVolume); 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.cpp164 LVM_INT16 leftVolume; member
426 if ((pContext->leftVolume != pContext->prevLeftVolume || in process()
432 float incl = (((float)pContext->leftVolume / 4096) - vl) / frameCount; in process()
443 pContext->prevLeftVolume = pContext->leftVolume; in process()
446 if (pContext->leftVolume != REVERB_UNIT_VOLUME || in process()
449 pContext->OutFrames[FCC_2 * i] *= ((float)pContext->leftVolume / 4096); in process()
453 pContext->prevLeftVolume = pContext->leftVolume; in process()
652 pContext->leftVolume = REVERB_UNIT_VOLUME; in Reverb_init()
1947 pContext->leftVolume = (LVM_INT16)((*(uint32_t*)pCmdData + (1 << 11)) >> 12); in Reverb_command()
1956 pContext->leftVolume = REVERB_UNIT_VOLUME; in Reverb_command()
[all …]
/frameworks/base/media/tests/SoundPoolTest/src/com/android/
DSoundPoolTest.java321 float leftVolume = (float) Math.sin(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()
715 mLeftVolume = leftVolume; in setVolume()
718 return mPlayer->setVolume(leftVolume, rightVolume); in setVolume()
DIMediaPlayer.cpp350 status_t setVolume(float leftVolume, float rightVolume) in setVolume() argument
354 data.writeFloat(leftVolume); in setVolume()
828 float leftVolume = 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 android_media_MediaPlayer_setVolume(JNIEnv *env, jobject thiz, jfloat leftVolume, jfloat rightVolum… 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
3464 leftVolume = ((*(uint32_t*)pCmdData)); in Effect_command()
3467 if (leftVolume == 0x1000000) { in Effect_command()
3468 leftVolume -= 1; in Effect_command()
3475 leftdB = android::LVC_Convert_VolToDb(leftVolume); 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 ...