src/share/classes/javax/sound/sampled/AudioSystem.java

Print this page




1605     private static List getMixerInfoList(List providers) {
1606         List infos = new ArrayList();
1607 
1608         Mixer.Info[] someInfos; // per-mixer
1609         Mixer.Info[] allInfos;  // for all mixers
1610 
1611         for(int i = 0; i < providers.size(); i++ ) {
1612             someInfos = ((MixerProvider)providers.get(i)).getMixerInfo();
1613 
1614             for (int j = 0; j < someInfos.length; j++) {
1615                 infos.add(someInfos[j]);
1616             }
1617         }
1618 
1619         return infos;
1620     }
1621 
1622 
1623     /**
1624      * Obtains the set of services currently installed on the system
1625      * using sun.misc.Service, the SPI mechanism in 1.3.
1626      * @return a List of instances of providers for the requested service.
1627      * If no providers are available, a vector of length 0 will be returned.
1628      */
1629     private static List getProviders(Class providerClass) {
1630         return JDK13Services.getProviders(providerClass);
1631     }
1632 }


1605     private static List getMixerInfoList(List providers) {
1606         List infos = new ArrayList();
1607 
1608         Mixer.Info[] someInfos; // per-mixer
1609         Mixer.Info[] allInfos;  // for all mixers
1610 
1611         for(int i = 0; i < providers.size(); i++ ) {
1612             someInfos = ((MixerProvider)providers.get(i)).getMixerInfo();
1613 
1614             for (int j = 0; j < someInfos.length; j++) {
1615                 infos.add(someInfos[j]);
1616             }
1617         }
1618 
1619         return infos;
1620     }
1621 
1622 
1623     /**
1624      * Obtains the set of services currently installed on the system
1625      * using the SPI mechanism in 1.3.
1626      * @return a List of instances of providers for the requested service.
1627      * If no providers are available, a vector of length 0 will be returned.
1628      */
1629     private static List getProviders(Class providerClass) {
1630         return JDK13Services.getProviders(providerClass);
1631     }
1632 }