public void replaySources() {
		Set<String> keys = sourceMap.keySet();
		Iterator<String> iter = keys.iterator();
		String sourcename;
		Source source;

		// loop through and cleanup all the sources:
		while (iter.hasNext()) {
			sourcename = iter.next();
			source = sourceMap.get(sourcename);
			if (source != null) {
				if (source.toPlay && !source.playing()) {
					play(sourcename);
					source.toPlay = false;
				}
			}
		}
	}