code: function( sample ) {
  		this.bufferData[ this.bufferIndex++ ] = sample;
  
  		if ( this.bufferIndex === this.bufferLength ) {
  			this.bufferIndex = 0;
  
  			if ( this.playing ) {
  				this.playing.stop();
  			}
  			
  			this.bufferSource.buffer = this.buffer;
  			this.playing = this.bufferSource;
  			this.playing.start( 0 );
  
  			this.initBuffer();
  		}
  	}
docs: Write sample to buffer.