public class AudioFileLoader
extends java.lang.Object
Constructor and Description |
---|
AudioFileLoader(@Nullable DebugWriter debugSound)
Private constructor to prevent instantiation.
|
Modifier and Type | Method and Description |
---|---|
@NotNull java.io.InputStream |
getInputStream(@NotNull java.lang.CharSequence name)
Returns an input stream for an audio file.
|
public AudioFileLoader(@Nullable @Nullable DebugWriter debugSound)
debugSound
- the writer for logging sound related information or
null
to not log@NotNull public @NotNull java.io.InputStream getInputStream(@NotNull @NotNull java.lang.CharSequence name) throws java.io.IOException
action
identifies the
audio file. name
is an optional prefix.name
- the namejava.io.IOException
- if the file cannot be located