public void run() {
				int frameCount =  0;
				while(_soundSupported){

	//				if(bufferReady) {
						if(oldWay) {
							soundInputLine.write(soundBuffer, soundBufferOffset, soundBufferChunkSize);
							notifyBufferUpdates( soundBufferOffset, soundBufferChunkSize);
							soundBufferOffset += soundBufferChunkSize;
							if(soundBufferOffset >= soundBuffer.length) {
									soundBufferOffset = 0;
							}						
							System.out.println("Count:" + lastCount + "  Index: " + soundBufferIndex + " Written:" + soundInputLine.write(soundBuffer, 0, soundBuffer.length));
							lastCount = 0;
							if(drainMode) {
								frameCount++;
								if(frameCount == 10){
									frameCount = 0;
									soundInputLine.drain();                    
								}
							}
							
						} else if(soundInputLine.available() > soundBufferChunkSize) {
//								if(soundInputLine.available() >= soundBuffer.length){
								int written = soundInputLine.write(soundBuffer, soundBufferOffset, soundBufferChunkSize);
								//int written = soundInputLine.write(soundBuffer, 0, soundBuffer.length);
								System.out.println("Wrote:" + written + " had:" + lastCount);
								lastCount -= soundBufferChunkSize;
								if(lastCount > actualBufferSize){
									soundInputLine.write(soundBuffer, 0, actualBufferSize);
									soundInputLine.drain();        
									lastCount = 0;
								}
						}
					 	
					}
				}