public void fadeOutIn(FilenameURL filenameURL, long milisOut, long milisIn) {
		if (!toStream) {
			errorMessage("Method 'fadeOutIn' may only be used for "
					+ "streaming and MIDI sources.");
			return;
		}
		if (filenameURL == null) {
			errorMessage("Filename/URL not specified in method 'fadeOutIn'.");
			return;
		}
		if (milisOut < 0 || milisIn < 0) {
			errorMessage("Miliseconds may not be negative in method "
					+ "'fadeOutIn'.");
			return;
		}

		fadeOutMilis = milisOut;
		fadeInMilis = milisIn;

		fadeOutGain = 1.0f;
		lastFadeCheck = System.currentTimeMillis();

		synchronized (soundSequenceLock) {
			if (soundSequenceQueue == null)
				soundSequenceQueue = new LinkedList<FilenameURL>();
			soundSequenceQueue.clear();
			soundSequenceQueue.add(filenameURL);
		}
	}