Crossfire JXClient, Trunk  R20561
com.realtime.crossfire.jxclient.sound.AudioFileLoader Class Reference

Locates audio files. More...

+ Collaboration diagram for com.realtime.crossfire.jxclient.sound.AudioFileLoader:

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...
 

Detailed Description

Locates audio files.

Author
Andreas Kirschbaum

Definition at line 38 of file AudioFileLoader.java.

Constructor & Destructor Documentation

◆ AudioFileLoader()

com.realtime.crossfire.jxclient.sound.AudioFileLoader.AudioFileLoader ( @Nullable final DebugWriter  debugSound)

Private constructor to prevent instantiation.

Parameters
debugSoundthe writer for logging sound related information or
null
to not log

Definition at line 52 of file AudioFileLoader.java.

References com.realtime.crossfire.jxclient.sound.AudioFileLoader.debugSound.

Member Function Documentation

◆ getInputStream()

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.

action

identifies the audio file.

name

is an optional prefix.

Parameters
namethe name
actionthe action; may be
null
Returns
the input stream
Exceptions
IOExceptionif 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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getResource()

InputStream com.realtime.crossfire.jxclient.sound.AudioFileLoader.getResource ( @NotNull final String  name) throws IOException
private

Returns an input stream for an audio file.

Parameters
namethe resource name
Returns
the input stream
Exceptions
IOExceptionif 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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ debugSound

final DebugWriter com.realtime.crossfire.jxclient.sound.AudioFileLoader.debugSound
private

The writer for logging sound related information or.

null

to not log.

Definition at line 45 of file AudioFileLoader.java.

Referenced by com.realtime.crossfire.jxclient.sound.AudioFileLoader.AudioFileLoader().


The documentation for this class was generated from the following file: