com.google.android.exoplayer2.audio.AuxEffectInfo Java Examples

The following examples show how to use com.google.android.exoplayer2.audio.AuxEffectInfo. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SimpleExoPlayer.java    From MediaSDK with Apache License 2.0 5 votes vote down vote up
@Override
public void setAuxEffectInfo(AuxEffectInfo auxEffectInfo) {
  verifyApplicationThread();
  for (Renderer renderer : renderers) {
    if (renderer.getTrackType() == C.TRACK_TYPE_AUDIO) {
      player
          .createMessage(renderer)
          .setType(C.MSG_SET_AUX_EFFECT_INFO)
          .setPayload(auxEffectInfo)
          .send();
    }
  }
}
 
Example #2
Source File: SimpleExoPlayer.java    From Telegram-FOSS with GNU General Public License v2.0 5 votes vote down vote up
@Override
public void setAuxEffectInfo(AuxEffectInfo auxEffectInfo) {
  verifyApplicationThread();
  for (Renderer renderer : renderers) {
    if (renderer.getTrackType() == C.TRACK_TYPE_AUDIO) {
      player
          .createMessage(renderer)
          .setType(C.MSG_SET_AUX_EFFECT_INFO)
          .setPayload(auxEffectInfo)
          .send();
    }
  }
}
 
Example #3
Source File: SimpleExoPlayer.java    From Telegram with GNU General Public License v2.0 5 votes vote down vote up
@Override
public void setAuxEffectInfo(AuxEffectInfo auxEffectInfo) {
  verifyApplicationThread();
  for (Renderer renderer : renderers) {
    if (renderer.getTrackType() == C.TRACK_TYPE_AUDIO) {
      player
          .createMessage(renderer)
          .setType(C.MSG_SET_AUX_EFFECT_INFO)
          .setPayload(auxEffectInfo)
          .send();
    }
  }
}
 
Example #4
Source File: Player.java    From MediaSDK with Apache License 2.0 4 votes vote down vote up
/** Sets information on an auxiliary audio effect to attach to the underlying audio track. */
void setAuxEffectInfo(AuxEffectInfo auxEffectInfo);
 
Example #5
Source File: SimpleExoPlayer.java    From MediaSDK with Apache License 2.0 4 votes vote down vote up
@Override
public void clearAuxEffectInfo() {
  setAuxEffectInfo(new AuxEffectInfo(AuxEffectInfo.NO_AUX_EFFECT_ID, /* sendLevel= */ 0f));
}
 
Example #6
Source File: Player.java    From Telegram-FOSS with GNU General Public License v2.0 4 votes vote down vote up
/** Sets information on an auxiliary audio effect to attach to the underlying audio track. */
void setAuxEffectInfo(AuxEffectInfo auxEffectInfo);
 
Example #7
Source File: SimpleExoPlayer.java    From Telegram-FOSS with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void clearAuxEffectInfo() {
  setAuxEffectInfo(new AuxEffectInfo(AuxEffectInfo.NO_AUX_EFFECT_ID, /* sendLevel= */ 0f));
}
 
Example #8
Source File: Player.java    From Telegram with GNU General Public License v2.0 4 votes vote down vote up
/** Sets information on an auxiliary audio effect to attach to the underlying audio track. */
void setAuxEffectInfo(AuxEffectInfo auxEffectInfo);
 
Example #9
Source File: SimpleExoPlayer.java    From Telegram with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void clearAuxEffectInfo() {
  setAuxEffectInfo(new AuxEffectInfo(AuxEffectInfo.NO_AUX_EFFECT_ID, /* sendLevel= */ 0f));
}