JDK-4269995 : Sequencer.addOutReceiver(receiver) not functioning
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.sound
  • Affected Version: 1.3.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_7
  • CPU: x86
  • Submitted: 1999-09-09
  • Updated: 2003-01-30
  • Resolved: 2003-01-30
Related Reports
Duplicate :  
Description
The JavaSound demo retrieves an array of MidiDevice.Info's from MidiSystem.getReceiverInfo().  Then it graps the receiver with MidiSystem.getReceiver(info[i]).  The description from each one of the MidiDevice.Info's are put into the options menu.  The user can select from one of the menuitems to change the receiver.  The receiver is passed to the open() method to each one of the demo tabs upon tab changes and menuitem selection.  Here's the implementation details :

    public void open(Receiver receiver) {
        sequencer = MidiSystem.getSequencer(null);
        if (receiver != null) {
            try {
                sequencer.addOutReceiver(receiver);
            } catch (Exception e) { e.printStackTrace(); }
        }
        ...
    }

Nothing appears to change when selecting from the four different receivers that appear in the options menu on my PC.

/usr/local/java/jdk1.3/win32/demo/sound

java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-F)
Java(TM) HotSpot Client VM (build 1.3beta-F, interpreted mode)

Comments
PUBLIC COMMENTS This will be fixed with the addition of the real-time sequencer in tiger. See bug 4773012 for more information.
10-06-2004

EVALUATION ###@###.### 2002-06-25 This functionality has been superseded by changes in the API for 1.3.0 and later; however intercepting a MIDI out stream while playing is still not possible (Sequencer.getTransmitter() is not working). committing to mantis. ###@###.### 2002-10-30 A new implementation of sequencer is needed for this feature. No engineering resources for mantis time frame, committing to tiger.
30-10-2002