Package javazoom.jl.player
Class JavaSoundAudioDeviceFactory
- java.lang.Object
-
- javazoom.jl.player.AudioDeviceFactory
-
- javazoom.jl.player.JavaSoundAudioDeviceFactory
-
public class JavaSoundAudioDeviceFactory extends AudioDeviceFactory
This class is responsible for creating instances of the JavaSoundAudioDevice. The audio device implementation is loaded and tested dynamically as not all systems will have support for JavaSound, or they may have the incorrect version.
-
-
Constructor Summary
Constructors Constructor Description JavaSoundAudioDeviceFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AudioDevicecreateAudioDevice()Creates a newAudioDevice.protected JavaSoundAudioDevicecreateAudioDeviceImpl()voidtestAudioDevice()-
Methods inherited from class javazoom.jl.player.AudioDeviceFactory
instantiate
-
-
-
-
Method Detail
-
createAudioDevice
public AudioDevice createAudioDevice() throws JavaLayerException
Description copied from class:AudioDeviceFactoryCreates a newAudioDevice.- Specified by:
createAudioDevicein classAudioDeviceFactory- Returns:
- a new instance of a specific class of
AudioDevice. - Throws:
JavaLayerException- if an instance of AudioDevice could not be created.
-
createAudioDeviceImpl
protected JavaSoundAudioDevice createAudioDeviceImpl() throws JavaLayerException
- Throws:
JavaLayerException
-
testAudioDevice
public void testAudioDevice() throws JavaLayerException- Throws:
JavaLayerException
-
-