package com.foxx.androidcast.receiver.av;

/** Receiver audio enhancement preset (developer / experimental). */
public enum ReceiverAudioPreset {
    DEFAULT,
    BASS_BOOST,
    IMMERSIVE,
    DOLBY_51,
    DOLBY_71;

    public static ReceiverAudioPreset fromName(String name, ReceiverAudioPreset fallback) {
        if (name == null) {
            return fallback;
        }
        try {
            return valueOf(name.trim().toUpperCase());
        } catch (IllegalArgumentException e) {
            return fallback;
        }
    }

    public boolean supportsIntensity() {
        return this != DEFAULT;
    }
}
