Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4836434

Linux: MidiFileWriter does not work if Java Sound Engine is disabled

XMLWordPrintable

    • b46
    • x86
    • linux



      Name: fb126949 Date: 03/23/2003


      When the Java Sound Audio Engine is disabled (e.g. by renaming /dev/dsp) and only ALSA drivers are enabled, then test 95 of the Java Sound test suite fails with this exception:

      java.lang.IllegalArgumentException: Could not write MIDI file
      at com.sun.media.sound.StandardMidiFileWriter.write(StandardMidiFileWriter.java:139)
      at javax.sound.midi.MidiSystem.write(MidiSystem.java:778)
      at test095.runTest(test095.java:123)
      at test095.main(test095.java:212)

      The test just writes a self-generated Sequence to a ByteArrayOutputStream. When the Java Sound Audio Engine is enabled, the test passes.


      ======================================================================

            fbomerssunw Florian Bomers (Inactive)
            fbomerssunw Florian Bomers (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: