public class Sample
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static int |
INTERP_BITMASK |
private static int |
INTERP_SHIFT |
private int |
loop_length |
private int |
loop_start |
java.lang.String |
name |
private static int |
OVERLAP |
int |
panning |
private static int |
POINT_SHIFT |
private static int |
POINTS |
private short[] |
sample_data |
boolean |
set_panning |
private static short[] |
sinc_table |
int |
transpose |
int |
volume |
Constructor and Description |
---|
Sample() |
Modifier and Type | Method and Description |
---|---|
boolean |
has_finished(int sample_idx) |
void |
resample_linear(int sample_idx,
int sample_frac,
int step,
int left_gain,
int right_gain,
int[] mix_buffer,
int frame_offset,
int frames) |
void |
resample_nearest(int sample_idx,
int sample_frac,
int step,
int left_gain,
int right_gain,
int[] mix_buffer,
int frame_offset,
int frames) |
void |
resample_sinc(int sample_idx,
int sample_frac,
int step,
int left_gain,
int right_gain,
int[] mix_buffer,
int frame_offset,
int frames) |
void |
set_sample_data(short[] data,
int loop_start,
int loop_length,
boolean ping_pong) |
public java.lang.String name
public boolean set_panning
public int volume
public int panning
public int transpose
private int loop_start
private int loop_length
private short[] sample_data
private static final int POINT_SHIFT
private static final int POINTS
private static final int OVERLAP
private static final int INTERP_SHIFT
private static final int INTERP_BITMASK
private static final short[] sinc_table
public void set_sample_data(short[] data, int loop_start, int loop_length, boolean ping_pong)
public void resample_nearest(int sample_idx, int sample_frac, int step, int left_gain, int right_gain, int[] mix_buffer, int frame_offset, int frames)
public void resample_linear(int sample_idx, int sample_frac, int step, int left_gain, int right_gain, int[] mix_buffer, int frame_offset, int frames)
public void resample_sinc(int sample_idx, int sample_frac, int step, int left_gain, int right_gain, int[] mix_buffer, int frame_offset, int frames)
public boolean has_finished(int sample_idx)