Crossfire JXClient, Trunk
R20561
|
Allocates new sound clips. More...
Public Member Functions | |
DataLine | allocateClip (@Nullable final String name, @NotNull final String action) |
Allocates a new clip. More... | |
ClipCache (@NotNull final AudioFileLoader audioFileLoader, @Nullable final DebugWriter debugSound) | |
Creates a new instance. More... | |
void | freeClip (@NotNull final Line clip) |
Deallocates a clip. More... | |
Private Member Functions | |
DataLine | newClip (@Nullable final String name, @NotNull final String action) |
Allocates a new clip. More... | |
Private Attributes | |
final AudioFileLoader | audioFileLoader |
The AudioFileLoader for loading audio files. More... | |
final DebugWriter | debugSound |
The writer for logging sound related information or. More... | |
Allocates new sound clips.
Definition at line 40 of file ClipCache.java.
com.realtime.crossfire.jxclient.sound.ClipCache.ClipCache | ( | @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 61 of file ClipCache.java.
References com.realtime.crossfire.jxclient.sound.ClipCache.audioFileLoader, and com.realtime.crossfire.jxclient.sound.ClipCache.debugSound.
DataLine com.realtime.crossfire.jxclient.sound.ClipCache.allocateClip | ( | @Nullable final String | name, |
@NotNull final String | action | ||
) |
Allocates a new clip.
name | an optional prefix for the action name |
action | the action name of the clip to allocate |
Definition at line 73 of file ClipCache.java.
References com.realtime.crossfire.jxclient.sound.ClipCache.newClip().
Referenced by com.realtime.crossfire.jxclient.sound.ClipManager.play().
void com.realtime.crossfire.jxclient.sound.ClipCache.freeClip | ( | @NotNull final Line | clip | ) |
Deallocates a clip.
clip | the clip to deallocate |
Definition at line 81 of file ClipCache.java.
References com.realtime.crossfire.jxclient.util.DebugWriter.debugProtocolWrite().
Referenced by com.realtime.crossfire.jxclient.sound.ClipManager.play().
|
private |
Allocates a new clip.
name | an optional prefix for the action name |
action | the action name of the clip to allocate |
Definition at line 95 of file ClipCache.java.
References com.realtime.crossfire.jxclient.util.DebugWriter.debugProtocolWrite(), and com.realtime.crossfire.jxclient.sound.AudioFileLoader.getInputStream().
Referenced by com.realtime.crossfire.jxclient.sound.ClipCache.allocateClip().
|
private |
The AudioFileLoader for loading audio files.
Definition at line 46 of file ClipCache.java.
Referenced by com.realtime.crossfire.jxclient.sound.ClipCache.ClipCache().
|
private |
The writer for logging sound related information or.
to not log.
Definition at line 53 of file ClipCache.java.
Referenced by com.realtime.crossfire.jxclient.sound.ClipCache.ClipCache().