JDK-4254462 : Audio device is opened even when MIDI hardware is used
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.sound
  • Affected Version: 1.3.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: x86
  • Submitted: 1999-07-15
  • Updated: 2003-01-30
  • Resolved: 2003-01-30
Related Reports
Duplicate :  
Description
The wavOut audio device is opened even when MIDI is played using native MIDI services on win32.  This unnecessarily occupies limited system resources (the audiod device) and prevents MIDI playback whenever the waveOut device is not available.

Comments
PUBLIC COMMENTS This is scheduled to be fixed with the addition of the real-time sequencer in J2SE v1.5. Please refer to bug 4773012 for more information.
10-06-2004

EVALUATION This happens because currently the Java Sound Engine opens the waveOut audio device whenever it is going to process any audio or MIDI objects. When processing only MIDI and using the native MIDI services on a win32 machine, however, opening the waveOut device is not necessary; only the midiOut device should be opened. The engine currently always uses the audio clock to handle timing. The fix involves changing the engine to use the system clock instead of the audio clock when only native MIDI services are in use. kara.kytle@Eng 1999-07-15 ###@###.### 2002-05-15 The fix is to decouple MIDI and audio. Commit to mantis. ###@###.### 2002-10-30 No engineering resources for mantis time frame. Commit to tiger.
15-05-2002