Interface AudioClipSource

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.applet.AudioClip getAudioClip​(java.lang.String resourceName)
      The idea behind this interface is to hide the implementation of getting an audio clip.
    • Method Detail

      • getAudioClip

        java.applet.AudioClip getAudioClip​(java.lang.String resourceName)
        The idea behind this interface is to hide the implementation of getting an audio clip. An application using an AudioClipSource would know exactly which clips it would need beforehand. This level of abstraction is useful, for example, in seperating out the logic of a game or an animation from an actual applet or a frame.

        A typical resourceName would be something like "drop.au" or even "audio/drop.au", but not "http://www.blockout.net/audio/drop.au".