private void initLineWriter() {
		lineWriter = new Thread() {
			public void run() {
				byte[] data = new byte[1024];
				try {
					while(!killThread) {
						if(playing) {
							if(ais.available() > 0) {
								ais.read(data);
								soundLine.write(data, 0, data.length);
							}
							else if(repeating) {
								resetAudio();
							}
							else {
								SoundStream.this.stop();
							}
						}
						else {
							threadPause();
						}
					}
				} catch (IOException e) {
					e.printStackTrace();
				}
			}
		};
		lineWriter.start();
		System.out.println("running!");
	}