Crossfire JXClient, Trunk
|
Public Member Functions | |
AudioFileLoader (@Nullable final DebugWriter debugSound) | |
InputStream | getInputStream (@NotNull final CharSequence name) throws IOException |
Private Attributes | |
final DebugWriter | debugSound |
Locates audio files.
Definition at line 41 of file AudioFileLoader.java.
com.realtime.crossfire.jxclient.sound.AudioFileLoader.AudioFileLoader | ( | @Nullable final DebugWriter | debugSound | ) |
Private constructor to prevent instantiation.
debugSound | the writer for logging sound related information or null
|
Definition at line 55 of file AudioFileLoader.java.
References com.realtime.crossfire.jxclient.sound.AudioFileLoader.debugSound.
InputStream com.realtime.crossfire.jxclient.sound.AudioFileLoader.getInputStream | ( | @NotNull final CharSequence | name | ) | throws IOException |
Returns an input stream for an audio file.
identifies the audio file.
is an optional prefix.
name | the name |
IOException | if the file cannot be located |
Definition at line 67 of file AudioFileLoader.java.
References com.realtime.crossfire.jxclient.util.DebugWriter.debugProtocolWrite(), com.realtime.crossfire.jxclient.sound.AudioFileLoader.debugSound, and com.realtime.crossfire.jxclient.settings.Filenames.getSettingsFile().
Referenced by com.realtime.crossfire.jxclient.sound.ClipLoader.allocateClip(), and com.realtime.crossfire.jxclient.sound.Processor.openAudioInputStream().
|
private |
The writer for logging sound related information or
to not log.
Definition at line 48 of file AudioFileLoader.java.
Referenced by com.realtime.crossfire.jxclient.sound.AudioFileLoader.AudioFileLoader(), and com.realtime.crossfire.jxclient.sound.AudioFileLoader.getInputStream().