public float getMaxGain() {
        float gainMax = -9999.0f;
        if (audioDevice instanceof JavaSoundAudioDevice) {
            JavaSoundAudioDevice jsAudio = (JavaSoundAudioDevice) audioDevice;
            gainMax = jsAudio.getMaxGain();
        }
        return gainMax;
    }