Class AudioFileLoader
java.lang.Object
com.realtime.crossfire.jxclient.sound.AudioFileLoader
Locates audio files.
-
Constructor Summary
ConstructorsConstructorDescriptionAudioFileLoader(@Nullable DebugWriter debugSound) Private constructor to prevent instantiation. -
Method Summary
Modifier and TypeMethodDescription@NotNull InputStreamgetInputStream(@NotNull CharSequence name) Returns an input stream for an audio file.
-
Constructor Details
-
AudioFileLoader
Private constructor to prevent instantiation.- Parameters:
debugSound- the writer for logging sound related information ornullto not log
-
-
Method Details
-
getInputStream
@NotNull public @NotNull InputStream getInputStream(@NotNull @NotNull CharSequence name) throws IOException Returns an input stream for an audio file.actionidentifies the audio file.nameis an optional prefix.- Parameters:
name- the name- Returns:
- the input stream
- Throws:
IOException- if the file cannot be located
-