system/output/audiooutput.js
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();
		}
	}
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();
		}
	}
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 ( ) ; } }
Write sample to buffer.
Write sample to buffer .