com.threerings.openal
Class ResourceClipProvider

java.lang.Object
  extended by com.threerings.openal.ResourceClipProvider
All Implemented Interfaces:
ClipProvider

public class ResourceClipProvider
extends Object
implements ClipProvider

Loads clips from resources.


Field Summary
protected  ResourceManager _rsrcmgr
          The resource manager from which we load resources.
 
Constructor Summary
ResourceClipProvider(ResourceManager rsrcmgr)
          Creates a new resource clip provider that will obtain resources from the given manager.
 
Method Summary
 Clip loadClip(String path)
          Loads the specified clip from the appropriate source.
protected static Clip loadOggClip(InputStream in)
          Loads an Ogg sound clip.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_rsrcmgr

protected ResourceManager _rsrcmgr
The resource manager from which we load resources.

Constructor Detail

ResourceClipProvider

public ResourceClipProvider(ResourceManager rsrcmgr)
Creates a new resource clip provider that will obtain resources from the given manager.

Method Detail

loadClip

public Clip loadClip(String path)
              throws IOException
Loads the specified clip from the appropriate source.

Specified by:
loadClip in interface ClipProvider
Throws:
IOException

loadOggClip

protected static Clip loadOggClip(InputStream in)
                           throws IOException
Loads an Ogg sound clip.

Throws:
IOException