Class FluidSynthEmbeddedSynthProvider
java.lang.Object
org.jjazz.fluidsynthembeddedsynth.api.FluidSynthEmbeddedSynthProvider
- All Implemented Interfaces:
EmbeddedSynthProvider
-
Field Summary
FieldsFields inherited from interface org.jjazz.embeddedsynth.spi.EmbeddedSynthProvider
PROP_EMBEDDED_SYNTH_ACTIVE, PROP_PROVIDER_ENABLED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidGet the EmbeddedSynth instance.getId()Get the unique Id of this instance.Get the OUT MidiDevice associated to the embedded synth.booleanCheck if the EmbeddedSynth is active.booleanCheck if this EmbeddedSynthProvider is enabled.voidvoidsetEmbeddedSynthActive(boolean b) Make FluidSynthJava active.
-
Field Details
-
ID
- See Also:
-
-
Constructor Details
-
FluidSynthEmbeddedSynthProvider
public FluidSynthEmbeddedSynthProvider()
-
-
Method Details
-
getEmbeddedSynth
Description copied from interface:EmbeddedSynthProviderGet the EmbeddedSynth instance.- Specified by:
getEmbeddedSynthin interfaceEmbeddedSynthProvider- Returns:
- Might be null if provider is disabled.
-
getId
Description copied from interface:EmbeddedSynthProviderGet the unique Id of this instance.- Specified by:
getIdin interfaceEmbeddedSynthProvider- Returns:
-
getOutMidiDevice
Description copied from interface:EmbeddedSynthProviderGet the OUT MidiDevice associated to the embedded synth.- Specified by:
getOutMidiDevicein interfaceEmbeddedSynthProvider- Returns:
- Might be null if provider is disabled.
-
setEmbeddedSynthActive
Make FluidSynthJava active.Open the FluidSynthJava instance and set FluidSynthMidiDevice as the default Midi OUT device (so that out MidiMessages are redirected to the FluidSynthJava instance).
- Specified by:
setEmbeddedSynthActivein interfaceEmbeddedSynthProvider- Parameters:
b-- Throws:
EmbeddedSynthException
-
isEmbeddedSynthActive
public boolean isEmbeddedSynthActive()Description copied from interface:EmbeddedSynthProviderCheck if the EmbeddedSynth is active.- Specified by:
isEmbeddedSynthActivein interfaceEmbeddedSynthProvider- Returns:
-
isEnabled
public boolean isEnabled()Description copied from interface:EmbeddedSynthProviderCheck if this EmbeddedSynthProvider is enabled.By default an EmbeddedSynthProvider is enabled, but it might get itself disabled if it encounters initialization errors, typically when calling setEmbeddedSynthActive(). When it becomes disabled a PROP_PROVIDER_ENABLED change event is fired.
- Specified by:
isEnabledin interfaceEmbeddedSynthProvider- Returns:
-
addPropertyChangeListener
- Specified by:
addPropertyChangeListenerin interfaceEmbeddedSynthProvider
-
removePropertyChangeListener
- Specified by:
removePropertyChangeListenerin interfaceEmbeddedSynthProvider
-