public NoiseDoubleDataSource(long n,double dB){
  super();
  this.n=n;
  dataLength=n;
  if (dB > 0) {
    throw new IllegalArgumentException("Energy must be non-positive");
  }
  this.amplitude=DDSAudioInputStream.MAX_AMPLITUDE * Math.sqrt(MathUtils.db2linear(dB));
}

public NoiseDoubleDataSource ( long n , double dB ) { super ( ) ; this . n = n ; dataLength = n ; if ( dB > 0 ) { throw new IllegalArgumentException ( "Energy must be non-positive" ) ; } this . amplitude = DDSAudioInputStream . MAX_AMPLITUDE * Math . sqrt ( MathUtils . db2linear ( dB ) ) ; }
construct an double data source from which a given amount of white noise can be read .
