Crossfire JXClient, Trunk
R20561
|
Locates audio files. More...
Public Member Functions | |
AudioFileLoader (@Nullable final DebugWriter debugSound) | |
Private constructor to prevent instantiation. More... | |
InputStream | getInputStream (@Nullable final String name, @NotNull final String action) throws IOException |
Returns an input stream for an audio file. More... | |
Private Member Functions | |
InputStream | getResource (@NotNull final String name) throws IOException |
Returns an input stream for an audio file. More... | |
Private Attributes | |
final DebugWriter | debugSound |
The writer for logging sound related information or. More... | |
Locates audio files.
Definition at line 38 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 52 of file AudioFileLoader.java.
References com.realtime.crossfire.jxclient.sound.AudioFileLoader.debugSound.
InputStream com.realtime.crossfire.jxclient.sound.AudioFileLoader.getInputStream | ( | @Nullable final String | name, |
@NotNull final String | action | ||
) | throws IOException |
Returns an input stream for an audio file.
identifies the audio file.
is an optional prefix.
name | the name |
action | the action; may be null |
IOException | if the file cannot be located |
Definition at line 65 of file AudioFileLoader.java.
References com.realtime.crossfire.jxclient.sound.AudioFileLoader.getResource().
Referenced by com.realtime.crossfire.jxclient.sound.ClipCache.newClip(), and com.realtime.crossfire.jxclient.sound.Processor.openAudioInputStream().
|
private |
Returns an input stream for an audio file.
name | the resource name |
IOException | if the file cannot be located |
Definition at line 91 of file AudioFileLoader.java.
References com.realtime.crossfire.jxclient.util.DebugWriter.debugProtocolWrite(), and com.realtime.crossfire.jxclient.settings.Filenames.getSettingsFile().
Referenced by com.realtime.crossfire.jxclient.sound.AudioFileLoader.getInputStream().
|
private |
The writer for logging sound related information or.
to not log.
Definition at line 45 of file AudioFileLoader.java.
Referenced by com.realtime.crossfire.jxclient.sound.AudioFileLoader.AudioFileLoader().