net.sourceforge.geeboss.model.midi
Class MidiManager

java.lang.Object
  extended by net.sourceforge.geeboss.model.midi.MidiManager

public class MidiManager
extends java.lang.Object

Manager for midi devices

Author:
Frederic BORRY

Constructor Summary
MidiManager(GeebossContainer container)
          Construct a new MidiManager
 
Method Summary
 javax.sound.midi.MidiDevice getInputDevice(java.lang.String name)
          Get an input device given it's name
 java.lang.String[] getInputDeviceNames()
          Returns the list of available transmitter names
 javax.sound.midi.MidiDevice getOutputDevice(java.lang.String name)
          Get an output device given it's name
 java.lang.String[] getOutputDeviceNames()
          Returns the list of available receiver names
 boolean hasInputDevice(java.lang.String name)
          Returns true if the specified input device is available
 boolean hasOutputDevice(java.lang.String name)
          Returns true if the specified output device is available
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MidiManager

public MidiManager(GeebossContainer container)
Construct a new MidiManager

Parameters:
container - the geeboss container
Method Detail

getInputDevice

public javax.sound.midi.MidiDevice getInputDevice(java.lang.String name)
Get an input device given it's name

Returns:
the input device throws IllegalArgumentException is the input device is not available

hasInputDevice

public boolean hasInputDevice(java.lang.String name)
Returns true if the specified input device is available

Parameters:
name - the intput device name
Returns:
true if the specified input device is available

getInputDeviceNames

public java.lang.String[] getInputDeviceNames()
Returns the list of available transmitter names

Returns:
the list of available transmitter names

getOutputDevice

public javax.sound.midi.MidiDevice getOutputDevice(java.lang.String name)
Get an output device given it's name

Returns:
the output device throws IllegalArgumentException is the output device is not available

hasOutputDevice

public boolean hasOutputDevice(java.lang.String name)
Returns true if the specified output device is available

Parameters:
name - the output device name
Returns:
true if the specified output device is available

getOutputDeviceNames

public java.lang.String[] getOutputDeviceNames()
Returns the list of available receiver names

Returns:
the list of available receiver names


Copyright (c) 2005 The Geeboss team (http://geeboss.sourceforge.net). All Rights Reserved.