Search in sources :

Example 1 with AuxEffectInfo

use of androidx.media3.common.AuxEffectInfo in project media by androidx.

the class ExoPlayerImpl method clearAuxEffectInfo.

@Override
public void clearAuxEffectInfo() {
    verifyApplicationThread();
    setAuxEffectInfo(new AuxEffectInfo(AuxEffectInfo.NO_AUX_EFFECT_ID, /* sendLevel= */
    0f));
}
Also used : AuxEffectInfo(androidx.media3.common.AuxEffectInfo)

Example 2 with AuxEffectInfo

use of androidx.media3.common.AuxEffectInfo in project media by androidx.

the class DecoderAudioRenderer method handleMessage.

@Override
public void handleMessage(@MessageType int messageType, @Nullable Object message) throws ExoPlaybackException {
    switch(messageType) {
        case MSG_SET_VOLUME:
            audioSink.setVolume((Float) message);
            break;
        case MSG_SET_AUDIO_ATTRIBUTES:
            AudioAttributes audioAttributes = (AudioAttributes) message;
            audioSink.setAudioAttributes(audioAttributes);
            break;
        case MSG_SET_AUX_EFFECT_INFO:
            AuxEffectInfo auxEffectInfo = (AuxEffectInfo) message;
            audioSink.setAuxEffectInfo(auxEffectInfo);
            break;
        case MSG_SET_SKIP_SILENCE_ENABLED:
            audioSink.setSkipSilenceEnabled((Boolean) message);
            break;
        case MSG_SET_AUDIO_SESSION_ID:
            audioSink.setAudioSessionId((Integer) message);
            break;
        case MSG_SET_CAMERA_MOTION_LISTENER:
        case MSG_SET_CHANGE_FRAME_RATE_STRATEGY:
        case MSG_SET_SCALING_MODE:
        case MSG_SET_VIDEO_FRAME_METADATA_LISTENER:
        case MSG_SET_VIDEO_OUTPUT:
        case MSG_SET_WAKEUP_LISTENER:
        default:
            super.handleMessage(messageType, message);
            break;
    }
}
Also used : AuxEffectInfo(androidx.media3.common.AuxEffectInfo) AudioAttributes(androidx.media3.common.AudioAttributes)

Example 3 with AuxEffectInfo

use of androidx.media3.common.AuxEffectInfo in project media by androidx.

the class MediaCodecAudioRenderer method handleMessage.

@Override
public void handleMessage(@MessageType int messageType, @Nullable Object message) throws ExoPlaybackException {
    switch(messageType) {
        case MSG_SET_VOLUME:
            audioSink.setVolume((Float) message);
            break;
        case MSG_SET_AUDIO_ATTRIBUTES:
            AudioAttributes audioAttributes = (AudioAttributes) message;
            audioSink.setAudioAttributes(audioAttributes);
            break;
        case MSG_SET_AUX_EFFECT_INFO:
            AuxEffectInfo auxEffectInfo = (AuxEffectInfo) message;
            audioSink.setAuxEffectInfo(auxEffectInfo);
            break;
        case MSG_SET_SKIP_SILENCE_ENABLED:
            audioSink.setSkipSilenceEnabled((Boolean) message);
            break;
        case MSG_SET_AUDIO_SESSION_ID:
            audioSink.setAudioSessionId((Integer) message);
            break;
        case MSG_SET_WAKEUP_LISTENER:
            this.wakeupListener = (WakeupListener) message;
            break;
        case MSG_SET_CAMERA_MOTION_LISTENER:
        case MSG_SET_CHANGE_FRAME_RATE_STRATEGY:
        case MSG_SET_SCALING_MODE:
        case MSG_SET_VIDEO_FRAME_METADATA_LISTENER:
        case MSG_SET_VIDEO_OUTPUT:
        default:
            super.handleMessage(messageType, message);
            break;
    }
}
Also used : AuxEffectInfo(androidx.media3.common.AuxEffectInfo) AudioAttributes(androidx.media3.common.AudioAttributes)

Aggregations

AuxEffectInfo (androidx.media3.common.AuxEffectInfo)3 AudioAttributes (androidx.media3.common.AudioAttributes)2