Class AdPlugFormat
- java.lang.Object
-
- com.b3dgs.lionengine.audio.adplug.AdPlugFormat
-
- All Implemented Interfaces:
AudioFormat
public final class AdPlugFormat extends java.lang.Object implements AudioFormat
Handle audio AdPlug.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringERROR_LOAD_LIBRARYLoad library error.
-
Constructor Summary
Constructors Constructor Description AdPlugFormat()Create format.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()static AudioFormatgetFailsafe()Get the library, or void format if not found.java.util.Collection<java.lang.String>getFormats()AdPlugloadAudio(Media media)
-
-
-
Field Detail
-
ERROR_LOAD_LIBRARY
public static final java.lang.String ERROR_LOAD_LIBRARY
Load library error.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AdPlugFormat
public AdPlugFormat()
Create format.- Throws:
LionEngineException- If unable to load library.
-
-
Method Detail
-
getFailsafe
@Generated public static AudioFormat getFailsafe()
Get the library, or void format if not found.- Returns:
- The audio format.
-
loadAudio
public AdPlug loadAudio(Media media)
- Specified by:
loadAudioin interfaceAudioFormat
-
getFormats
public java.util.Collection<java.lang.String> getFormats()
- Specified by:
getFormatsin interfaceAudioFormat
-
close
public void close()
- Specified by:
closein interfaceAudioFormat
-
-