javax.sound.sampled.spi

Class MixerProvider


  • public abstract class MixerProvider
    extends Object
    A provider or factory for a particular mixer type. This mechanism allows the implementation to determine how resources are managed in creation / management of a mixer.
    Since:
    1.3
    • Constructor Detail

      • MixerProvider

        public MixerProvider()
    • Method Detail

      • isMixerSupported

        public boolean isMixerSupported(Mixer.Info info)
        Indicates whether the mixer provider supports the mixer represented by the specified mixer info object.

        The full set of mixer info objects that represent the mixers supported by this MixerProvider may be obtained through the getMixerInfo method.

        Parameters:
        info - an info object that describes the mixer for which support is queried
        Returns:
        true if the specified mixer is supported, otherwise false
        See Also:
        getMixerInfo()
      • getMixerInfo

        public abstract Mixer.Info[] getMixerInfo()
        Obtains the set of info objects representing the mixer or mixers provided by this MixerProvider.

        The isMixerSupported method returns true for all the info objects returned by this method. The corresponding mixer instances for the info objects are returned by the getMixer method.

        Returns:
        a set of mixer info objects
        See Also:
        getMixer(Mixer.Info), isMixerSupported(Mixer.Info)
      • getMixer

        public abstract Mixer getMixer(Mixer.Info info)
        Obtains an instance of the mixer represented by the info object.

        The full set of the mixer info objects that represent the mixers supported by this MixerProvider may be obtained through the getMixerInfo method. Use the isMixerSupported method to test whether this MixerProvider supports a particular mixer.

        Parameters:
        info - an info object that describes the desired mixer
        Returns:
        mixer instance
        Throws:
        IllegalArgumentException - if the info object specified does not match the info object for a mixer supported by this MixerProvider.
        See Also:
        getMixerInfo(), isMixerSupported(Mixer.Info)

Traduction non disponible

Les API Java ne sont pas encore traduites en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.

Document créé le 01/09/2006, dernière modification le 04/03/2020
Source du document imprimé : https://www.gaudry.be/java-api-rf-javax/sound/sampled/spi/MixerProvider.html

L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.

Références

  1. Consulter le document html Langue du document :fr Manuel PHP : https://docs.oracle.com, MixerProvider

Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.

Table des matières Haut