Lines Matching defs:ap

447  *    ap != NULL
449 * ap->mAPlayer != 0
450 * ap->mAudioTrack == 0
452 * ap->mAPlayer == 0
453 * ap->mAudioTrack != 0 is optional; if no track yet then the setting is deferred
455 android::status_t android_fxSend_attach(CAudioPlayer* ap, bool attach,
467 if (ap->mAPlayer != 0) {
468 assert(ap->mAudioTrack == 0);
470 ap->mAPlayer->attachAuxEffect(pFx->id());
471 ap->mAPlayer->setAuxEffectSendLevel( sles_to_android_amplification(sendLevel) );
473 ap->mAPlayer->attachAuxEffect(0);
478 if (ap->mAudioTrack == 0) {
482 ap->mAuxEffect = pFx;
484 ap->mAuxEffect.clear();
487 ap->mAuxSendLevel = sendLevel - ap->mVolume.mLevel;
492 android::status_t status = ap->mAudioTrack->attachAuxEffect(pFx->id());
496 ap->mAudioTrack->setAuxEffectSendLevel( sles_to_android_amplification(sendLevel) );
500 return ap->mAudioTrack->attachAuxEffect(0);
507 * ap != NULL
508 * ap->mOutputMix != NULL
510 SLresult android_fxSend_attachToAux(CAudioPlayer* ap, SLInterfaceID pUuid, SLboolean attach,
512 COutputMix *outputMix = CAudioPlayer_GetOutputMix(ap);
524 if (android::NO_ERROR == android_fxSend_attach( ap, (bool) attach, pFx, sendLevel) ) {
535 * ap != NULL
537 * ap->mAPlayer != 0
538 * ap->mAudioTrack == 0
540 * ap->mAPlayer == 0
541 * ap->mAudioTrack != 0 is optional; if no track yet then the setting is deferred
543 android::status_t android_fxSend_setSendLevel(CAudioPlayer* ap, SLmillibel sendLevel) {
545 ap->mAuxSendLevel = sendLevel - ap->mVolume.mLevel;
547 if (ap->mAPlayer != 0) {
548 assert(ap->mAudioTrack == 0);
549 ap->mAPlayer->setAuxEffectSendLevel( sles_to_android_amplification(sendLevel) );
553 if (ap->mAudioTrack == 0) {
557 return ap->mAudioTrack->setAuxEffectSendLevel( sles_to_android_amplification(sendLevel) );