speakIO = rm.claimIOResource(dev, SPEAKER_PORT, 1); pitIO = rm.claimIOResource(dev, CHANNEL2_PORT, 2);
speakIO = claimPorts(rm, dev, SPEAKER_PORT, 1); pitIO = claimPorts(rm, dev, CHANNEL2_PORT, 2);
	public void startDevice() throws DriverException	{		try		{			final Device dev = getDevice();			final ResourceManager rm = (ResourceManager) InitialNaming.lookup(ResourceManager.NAME);			speakIO = rm.claimIOResource(dev, SPEAKER_PORT, 1);			pitIO = rm.claimIOResource(dev, CHANNEL2_PORT, 2);			getDevice().registerAPI(SpeakerAPI.class, this);			// do a test beep during startup			//beep();		}		catch (NameNotFoundException nnfex) { throw new DriverException (nnfex); }		catch (ResourceNotFreeException rnfex) { throw new DriverException (rnfex); }	}