|
Sharkysoft home | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--lava.riff.wave.WaveSampleRounder
Rounds wave sample data.
Details: WaveSampleRounder is a collection of functions that round sample arrays to a desired precision.
The parameters for each of these methods follow the same pattern as described in the header for class , with the exception that there is an additional parameter that specifies the rounding precision.WaveSampleConverter
| Constructor Summary | |
WaveSampleRounder()
|
|
| Method Summary | |
static byte[] |
round(byte[] src,
int from,
byte[] dest,
int to,
int amt,
int bits)
Rounds values to requested precision. |
static int[] |
round(int[] src,
int from,
int[] dest,
int to,
int amt,
int bits)
Rounds values to requested precision. |
static long[] |
round(long[] src,
int from,
long[] dest,
int to,
int amt,
int bits)
Rounds values to requested precision. |
static short[] |
round(short[] src,
int from,
short[] dest,
int to,
int amt,
int bits)
Rounds values to requested precision. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public WaveSampleRounder()
| Method Detail |
public static long[] round(long[] src,
int from,
long[] dest,
int to,
int amt,
int bits)
Details: round modifies the sample data so that each value is rounded to the specified number of bits. Rounding is accomplished by setting the least significant bits to 0.
src - source arrayfrom - starting index in srcdest - destination arrayto - starting index in destamt - number of values to clipbits - number of bits of precision
public static int[] round(int[] src,
int from,
int[] dest,
int to,
int amt,
int bits)
Details: round modifies the sample data so that each value is rounded to the specified number of bits. Rounding is accomplished by setting the least significant bits to 0.
src - source arrayfrom - starting index in srcdest - destination arrayto - starting index in destamt - number of values to clipbits - number of bits of precision
public static short[] round(short[] src,
int from,
short[] dest,
int to,
int amt,
int bits)
Details: round modifies the sample data so that each value is rounded to the specified number of bits. Rounding is accomplished by setting the least significant bits to 0.
src - source arrayfrom - starting index in srcdest - destination arrayto - starting index in destamt - number of values to clipbits - number of bits of precision
public static byte[] round(byte[] src,
int from,
byte[] dest,
int to,
int amt,
int bits)
Details: round modifies the sample data so that each value is rounded to the specified number of bits. Rounding is accomplished by setting the least significant bits to 0.
src - source arrayfrom - starting index in srcdest - destination arrayto - starting index in destamt - number of values to clipbits - number of bits of precision
|
Sharkysoft home | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||