public boolean newLibrary(Class<?> libraryClass)
			throws SoundSystemException {
		initialized(SET, false);

		CommandQueue(new CommandObject(CommandObject.NEW_LIBRARY, libraryClass));
		commandThread.interrupt();

		for (int x = 0; (!initialized(GET, XXX)) && (x < 100); x++) {
			snooze(400);
			commandThread.interrupt();
		}

		if (!initialized(GET, XXX)) {
			SoundSystemException sse = new SoundSystemException(className
					+ " did not load after 30 seconds.",
					SoundSystemException.LIBRARY_NULL);
			lastException(SET, sse);
			throw sse;
		} else {
			SoundSystemException sse = lastException(GET, null);
			if (sse != null)
				throw sse;
		}
		return true;
	}