Rabbit Escape  2017-01-14_18:33:47_+0000__(tag:_v0.10.1)
Public Member Functions | Private Member Functions | Private Attributes | List of all members
rabbitescape.ui.swing.SwingSoundCache Class Reference
Collaboration diagram for rabbitescape.ui.swing.SwingSoundCache:
Collaboration graph
[legend]

Public Member Functions

Clip get (String name) throws Exception
 
void dispose ()
 
void stopAll ()
 
void remove (String name)
 

Private Member Functions

Clip loadClip (String name) throws Exception
 

Private Attributes

final Map< String, Clip > clips = new HashMap<String, Clip>()
 

Detailed Description

For now, caches all sounds you ask for, and disposes them when asked.

Member Function Documentation

void rabbitescape.ui.swing.SwingSoundCache.dispose ( )
Clip rabbitescape.ui.swing.SwingSoundCache.get ( String  name) throws Exception

Could throw lots of different exceptions - we will ignore them all, since audio is non-critical.

Clip rabbitescape.ui.swing.SwingSoundCache.loadClip ( String  name) throws Exception
private
void rabbitescape.ui.swing.SwingSoundCache.remove ( String  name)
void rabbitescape.ui.swing.SwingSoundCache.stopAll ( )

Member Data Documentation

final Map<String, Clip> rabbitescape.ui.swing.SwingSoundCache.clips = new HashMap<String, Clip>()
private

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