Package com.nerius.game
Interface AudioClipSource
-
- All Known Subinterfaces:
BoardAWTStub,HeadlessBoardAWTStub
- All Known Implementing Classes:
BoardAWTAdapter
public interface AudioClipSourceExposes the notion of an ability to get audio clips by name.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.applet.AudioClipgetAudioClip(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 anAudioClipSourcewould 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
resourceNamewould be something like "drop.au" or even "audio/drop.au", but not "http://www.blockout.net/audio/drop.au".
-
-