private void openAudioClip(File file) throws UnsupportedAudioFileException, IOException, LineUnavailableException {
		this.file = file;
		audioInputStream = AudioSystem.getAudioInputStream(file);
		if (isEncoded()){
			AudioFormat baseFormat = audioInputStream.getFormat();
			AudioFormat decodedFormat = new AudioFormat(AudioFormat.Encoding.PCM_SIGNED, 
				baseFormat.getSampleRate(),
				16,
				baseFormat.getChannels(),
				baseFormat.getChannels() * 2,
				baseFormat.getSampleRate(),
				false);
			audioInputStream = AudioSystem.getAudioInputStream(decodedFormat, audioInputStream);
		}
		framePosition = 0;
		clip = AudioSystem.getClip();
		clip.open(audioInputStream);
	}