annotate game/Sound.java @ 138:9eb791e2fa17

Optimize board updating logic, so that the old placed tiles need not to be redrawn from scratch on each screen update, as they do not change usually.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 25 Nov 2011 11:04:09 +0200
parents 736de7b28701
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
38
736de7b28701 Non-working sound code ...
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
1 package game;
736de7b28701 Non-working sound code ...
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
2
736de7b28701 Non-working sound code ...
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
3 public class Sound {
736de7b28701 Non-working sound code ...
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
4
736de7b28701 Non-working sound code ...
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
5 private byte[] samples;
736de7b28701 Non-working sound code ...
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
6
736de7b28701 Non-working sound code ...
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
7 public Sound(byte[] samples)
736de7b28701 Non-working sound code ...
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
8 {
736de7b28701 Non-working sound code ...
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
9 this.samples = samples;
736de7b28701 Non-working sound code ...
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
10 }
736de7b28701 Non-working sound code ...
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
11
736de7b28701 Non-working sound code ...
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
12 public byte[] getSamples()
736de7b28701 Non-working sound code ...
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
13 {
736de7b28701 Non-working sound code ...
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
14 return samples;
736de7b28701 Non-working sound code ...
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
15 }
736de7b28701 Non-working sound code ...
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
16
736de7b28701 Non-working sound code ...
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
17 }