1 |
/* Copyright (C) 2004 Free Software Foundation |
/* Copyright (C) 2004, 2005 Free Software Foundation |
2 |
|
|
3 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
4 |
|
|
47 |
code is a maintenance nightmare. */ |
code is a maintenance nightmare. */ |
48 |
|
|
49 |
/** |
/** |
50 |
|
* A {@link DataBuffer} that uses an array of <code>float</code> primitives |
51 |
|
* to represent each of its banks. |
52 |
|
* |
53 |
* @author Rolf W. Rasmussen (rolfwr@ii.uib.no) |
* @author Rolf W. Rasmussen (rolfwr@ii.uib.no) |
54 |
* @author Sascha Brawer (brawer@dandelis.ch) |
* @author Sascha Brawer (brawer@dandelis.ch) |
55 |
*/ |
*/ |
227 |
*/ |
*/ |
228 |
public void setElem(int i, int val) |
public void setElem(int i, int val) |
229 |
{ |
{ |
230 |
data[i+offset] = (float) val; |
data[i+offset] = val; |
231 |
} |
} |
232 |
|
|
233 |
/** |
/** |
241 |
*/ |
*/ |
242 |
public void setElem(int bank, int i, int val) |
public void setElem(int bank, int i, int val) |
243 |
{ |
{ |
244 |
bankData[bank][i+offsets[bank]] = (float) val; |
bankData[bank][i+offsets[bank]] = val; |
245 |
} |
} |
246 |
|
|
247 |
public float getElemFloat(int i) |
public float getElemFloat(int i) |