Lines Matching refs:ap
455 android::status_t android_fxSend_attach(CAudioPlayer* ap, bool attach, in android_fxSend_attach() argument
467 if (ap->mAPlayer != 0) { in android_fxSend_attach()
468 assert(ap->mAudioTrack == 0); in android_fxSend_attach()
470 ap->mAPlayer->attachAuxEffect(pFx->id()); in android_fxSend_attach()
471 ap->mAPlayer->setAuxEffectSendLevel( sles_to_android_amplification(sendLevel) ); in android_fxSend_attach()
473 ap->mAPlayer->attachAuxEffect(0); in android_fxSend_attach()
478 if (ap->mAudioTrack == 0) { in android_fxSend_attach()
482 ap->mAuxEffect = pFx; in android_fxSend_attach()
484 ap->mAuxEffect.clear(); in android_fxSend_attach()
487 ap->mAuxSendLevel = sendLevel - ap->mVolume.mLevel; in android_fxSend_attach()
492 android::status_t status = ap->mAudioTrack->attachAuxEffect(pFx->id()); in android_fxSend_attach()
496 ap->mAudioTrack->setAuxEffectSendLevel( sles_to_android_amplification(sendLevel) ); in android_fxSend_attach()
500 return ap->mAudioTrack->attachAuxEffect(0); in android_fxSend_attach()
510 SLresult android_fxSend_attachToAux(CAudioPlayer* ap, SLInterfaceID pUuid, SLboolean attach, in android_fxSend_attachToAux() argument
512 COutputMix *outputMix = CAudioPlayer_GetOutputMix(ap); in android_fxSend_attachToAux()
524 if (android::NO_ERROR == android_fxSend_attach( ap, (bool) attach, pFx, sendLevel) ) { in android_fxSend_attachToAux()
543 android::status_t android_fxSend_setSendLevel(CAudioPlayer* ap, SLmillibel sendLevel) { in android_fxSend_setSendLevel() argument
545 ap->mAuxSendLevel = sendLevel - ap->mVolume.mLevel; in android_fxSend_setSendLevel()
547 if (ap->mAPlayer != 0) { in android_fxSend_setSendLevel()
548 assert(ap->mAudioTrack == 0); in android_fxSend_setSendLevel()
549 ap->mAPlayer->setAuxEffectSendLevel( sles_to_android_amplification(sendLevel) ); in android_fxSend_setSendLevel()
553 if (ap->mAudioTrack == 0) { in android_fxSend_setSendLevel()
557 return ap->mAudioTrack->setAuxEffectSendLevel( sles_to_android_amplification(sendLevel) ); in android_fxSend_setSendLevel()