Crossfire JXClient, Trunk
|
Public Member Functions | |
DataLine | allocateClip (@NotNull final CharSequence action) |
ClipLoader (@NotNull final AudioFileLoader audioFileLoader, @Nullable final DebugWriter debugSound) | |
void | freeClip (@NotNull final Line clip) |
Private Attributes | |
final AudioFileLoader | audioFileLoader |
final DebugWriter | debugSound |
Allocates new sound clips.
Definition at line 43 of file ClipLoader.java.
com.realtime.crossfire.jxclient.sound.ClipLoader.ClipLoader | ( | @NotNull final AudioFileLoader | audioFileLoader, |
@Nullable final DebugWriter | debugSound | ||
) |
Creates a new instance.
audioFileLoader | the audio file loader for loading audio files |
debugSound | the writer for logging sound related information or null
|
Definition at line 64 of file ClipLoader.java.
References com.realtime.crossfire.jxclient.sound.ClipLoader.audioFileLoader, and com.realtime.crossfire.jxclient.sound.ClipLoader.debugSound.
DataLine com.realtime.crossfire.jxclient.sound.ClipLoader.allocateClip | ( | @NotNull final CharSequence | action | ) |
Allocates a new clip.
action | the action name of the clip to allocate |
Definition at line 86 of file ClipLoader.java.
References com.realtime.crossfire.jxclient.sound.ClipLoader.audioFileLoader, com.realtime.crossfire.jxclient.util.DebugWriter.debugProtocolWrite(), com.realtime.crossfire.jxclient.sound.ClipLoader.debugSound, and com.realtime.crossfire.jxclient.sound.AudioFileLoader.getInputStream().
Referenced by com.realtime.crossfire.jxclient.sound.ClipManager.ClipLoadTask.getCallable().
void com.realtime.crossfire.jxclient.sound.ClipLoader.freeClip | ( | @NotNull final Line | clip | ) |
Deallocates a clip.
clip | the clip to deallocate |
Definition at line 73 of file ClipLoader.java.
References com.realtime.crossfire.jxclient.util.DebugWriter.debugProtocolWrite(), and com.realtime.crossfire.jxclient.sound.ClipLoader.debugSound.
Referenced by com.realtime.crossfire.jxclient.sound.ClipManager.ClipFreeTask.getCallable().
|
private |
The AudioFileLoader for loading audio files.
Definition at line 49 of file ClipLoader.java.
Referenced by com.realtime.crossfire.jxclient.sound.ClipLoader.allocateClip(), and com.realtime.crossfire.jxclient.sound.ClipLoader.ClipLoader().
|
private |
The writer for logging sound related information or
to not log.
Definition at line 56 of file ClipLoader.java.
Referenced by com.realtime.crossfire.jxclient.sound.ClipLoader.allocateClip(), com.realtime.crossfire.jxclient.sound.ClipLoader.ClipLoader(), and com.realtime.crossfire.jxclient.sound.ClipLoader.freeClip().