private void CommandNewSource(boolean priority, boolean toStream,
			boolean toLoop, String sourcename, FilenameURL filenameURL,
			float x, float y, float z, int attModel, float distORroll) {
		if (soundLibrary != null) {
			if (filenameURL.getFilename().matches(
					SoundSystemConfig.EXTENSION_MIDI)
					&& !SoundSystemConfig.midiCodec()) {
				soundLibrary.loadMidi(toLoop, sourcename, filenameURL);
			} else {
				soundLibrary.newSource(priority, toStream, toLoop, sourcename,
						filenameURL, x, y, z, attModel, distORroll);
			}
		} else
			errorMessage(
					"Variable 'soundLibrary' null in method 'CommandNewSource'",
					0);
	}