com.brackeen.javagamebook.sound
Class Sound

java.lang.Object
  extended bycom.brackeen.javagamebook.sound.Sound

public class Sound
extends java.lang.Object

The Sound class is a container for sound samples. The sound samples are format-agnostic and are stored as a byte array.


Constructor Summary
Sound(byte[] samples)
          Create a new Sound object with the specified byte array.
 
Method Summary
 byte[] getSamples()
          Returns this Sound's objects samples as a byte array.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sound

public Sound(byte[] samples)
Create a new Sound object with the specified byte array. The array is not copied.

Method Detail

getSamples

public byte[] getSamples()
Returns this Sound's objects samples as a byte array.