Mercurial > hg > ristipolku
diff game/Sound.java @ 38:736de7b28701
Non-working sound code ...
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 18 Feb 2011 04:58:42 +0200 |
parents | 0741dc117808 |
children |
line wrap: on
line diff
--- a/game/Sound.java Fri Feb 18 04:58:30 2011 +0200 +++ b/game/Sound.java Fri Feb 18 04:58:42 2011 +0200 @@ -1,36 +1,17 @@ -/* - * Ristipolku Game Engine - * (C) Copyright 2011 Matti 'ccr' Hämäläinen <ccr@tnsp.org> - */ -package game; - - -public enum Sound -{ - // Music loops - MUSIC_GAME1 ("gamemusic.wav", true), - - // Sound effects - PIECE_PLACED ("placed.wav", false); - - - - private final String name; - private final boolean streaming; - - Sound(String name, boolean streaming) - { - this.name = name; - this.streaming = streaming; - } - - public String getName() - { - return this.name; - } - - public boolean isStreaming() - { - return streaming; - } -} +package game; + +public class Sound { + + private byte[] samples; + + public Sound(byte[] samples) + { + this.samples = samples; + } + + public byte[] getSamples() + { + return samples; + } + +}