protected AudioDeviceFactory[] getFactoriesPriority()
	{
		AudioDeviceFactory[] fa = null;
		synchronized (factories)
		{
			int size = factories.size();
			if (size!=0)
			{
				fa = new AudioDeviceFactory[size];
				int idx = 0;
				Enumeration e = factories.elements();
				while (e.hasMoreElements())
				{
					AudioDeviceFactory factory = (AudioDeviceFactory)e.nextElement();
					fa[idx++] = factory;	
				}
			}
		}
		return fa;
	}