package jp.crestmuse.cmx.sound;
import jp.crestmuse.cmx.math.*;
import javax.sound.sampled.*;
import java.io.*;

public interface AudioDataCompatible {
  int channels();
  int sampleRate();
  DoubleArray[] getDoubleArrayWaveform();
  byte[] getByteArrayWaveform();
  AudioFormat getAudioFormat();
  DoubleArray[] readNext(int sampleSize, int nOverlap) throws IOException;
//  DoubleArray[] readNext(int sampleSize);
//  void readNext(int sampleSize, DoubleArray[] wav, index);
//  DoubleArray[] getLast(int sampleSize);
//  void getLast(int sampleSize, DoubleArray[] wav, index);
  boolean hasNext(int sampleSize);
  boolean supportsWholeWaveformGetter();
}
