1 public class SampleBufferWrapper {
3 static SampleBuffer output;
6 static void init(int freq, int channels) {
7 output = new SampleBuffer(freq, channels);
11 static void clear_buffer(){
12 output.clear_buffer();
16 static SampleBuffer getOutput() {
21 static short[] getBuffer() {
22 return output.getBuffer();
26 static int getBufferLength() {
27 return output.getBufferLength();
31 static void appendSamples(int channel, float[] f) {
32 output.appendSamples(channel, f);