All Downloads are FREE. Search and download functionalities are using the official Maven repository.

uk.co.caprica.vlcj.player.base.AudioMixMode Maven / Gradle / Ivy

/*
 * This file is part of VLCJ.
 *
 * VLCJ is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * VLCJ is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with VLCJ.  If not, see .
 *
 * Copyright 2009-2024 Caprica Software Limited.
 */

package uk.co.caprica.vlcj.player.base;

import java.util.HashMap;
import java.util.Map;

/**
 * Enumeration of audio mix modes.
 */
public enum AudioMixMode {

    libvlc_AudioMixMode_Unset(0),
    libvlc_AudioMixMode_Stereo(1),
    libvlc_AudioMixMode_Binaural(2),
    libvlc_AudioMixMode_4_0(3),
    libvlc_AudioMixMode_5_1(4),
    libvlc_AudioMixMode_7_1(5);

    private static final Map INT_MAP = new HashMap();

    static {
        for (AudioMixMode value : AudioMixMode.values()) {
            INT_MAP.put(value.intValue, value);
        }
    }

    public static AudioMixMode audioMixMode(int intValue) {
        return INT_MAP.get(intValue);
    }

    private final int intValue;

    AudioMixMode(int intValue) {
        this.intValue = intValue;
    }

    public int intValue() {
        return intValue;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy