@Override protected void finalize() throws Throwable { try { nativeRelease(); } finally { super.finalize(); } }
private Equalizer(int index) { nativeNewFromPreset(index); }
private Equalizer(int index) { nativeNewFromPreset(index); }
private Equalizer(int index) { nativeNewFromPreset(index); }
private Equalizer() { nativeNew(); }
private Equalizer() { nativeNew(); }
private Equalizer() { nativeNew(); }
private Equalizer() { nativeNew(); }
private Equalizer(int index) { nativeNewFromPreset(index); }
private Equalizer(int index) { nativeNewFromPreset(index); }
/** * Get the name of a particular equalizer preset. * This name can be used, for example, to prepare a preset label or menu in a user * interface. * * @param index index of the preset, counting from zero. * @return preset name, or NULL if there is no such preset */ public static String getPresetName(int index) { return nativeGetPresetName(index); }
/** * Get the number of equalizer presets. */ public static int getPresetCount() { return nativeGetPresetCount(); }
/** * Get a particular equalizer band frequency. * This value can be used, for example, to create a label for an equalizer band control * in a user interface. * * @param index index of the band, counting from zero. * @return equalizer band frequency (Hz), or -1 if there is no such band */ public static float getBandFrequency(int index) { return nativeGetBandFrequency(index); }
/** * Create a new equalizer, with initial frequency values copied from an existing * preset. * The new equalizer can subsequently be applied to a media player by invoking * {@link MediaPlayer#setEqualizer}. */ public static Equalizer createFromPreset(int index) { return new Equalizer(index); }
/** * Get the current pre-amplification value from an equalizer. * * @return preamp value (Hz) */ public float getPreAmp() { return nativeGetPreAmp(); }
private Equalizer() { nativeNew(); }
/** * Get the name of a particular equalizer preset. * This name can be used, for example, to prepare a preset label or menu in a user * interface. * * @param index index of the preset, counting from zero. * @return preset name, or NULL if there is no such preset */ public static String getPresetName(int index) { return nativeGetPresetName(index); }
/** * Get the number of equalizer presets. */ public static int getPresetCount() { return nativeGetPresetCount(); }
/** * Create a new equalizer, with initial frequency values copied from an existing * preset. * The new equalizer can subsequently be applied to a media player by invoking * {@link MediaPlayer#setEqualizer}. */ public static Equalizer createFromPreset(int index) { return new Equalizer(index); }
/** * Create a new equalizer, with initial frequency values copied from an existing * preset. * The new equalizer can subsequently be applied to a media player by invoking * {@link MediaPlayer#setEqualizer}. */ public static Equalizer createFromPreset(int index) { return new Equalizer(index); }