public WaveWriter(AudioFormat format,Path file,long maxSize) throws IOException {
  assert (format != null);
  assert (file != null);
  mAudioFormat=format;
  mFile=file;
  if (0 < maxSize && maxSize <= MAX_WAVE_SIZE) {
    mMaxSize=maxSize;
  }
 else {
    mMaxSize=MAX_WAVE_SIZE;
  }
  open();
}

public WaveWriter ( AudioFormat format , Path file , long maxSize ) throws IOException { assert ( format != null ) ; assert ( file != null ) ; mAudioFormat = format ; mFile = file ; if ( 0 < maxSize && maxSize <= MAX_WAVE_SIZE ) { mMaxSize = maxSize ; } else { mMaxSize = MAX_WAVE_SIZE ; } open ( ) ; }
constructs a new wave writer that is open with a complete header , ready for writing buffers of pcm sample data . each time the maximum file size is reached , a new file is created with a series suffix appended to the file name .
