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

java.io.IOException: at com.sun.media.sound.HeadspaceSoundbank.initialize()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.4.0
    • client-libs

      Steps to reproduce:
      1) Make a folder soundbanks & keep all the 3 soundbank files in the folder.
      2) execute the attached test program, test076.java.

      This throws the following exception:

      Just opened synth. Make sure it gets closed!

      Loading Soundbank: DEFAULT_SOUNDBANK
      Unloading Soundbank: DEFAULT_SOUNDBANK

      Loading Soundbank: MIN_SOUNDBANK
      Unloading Soundbank: MIN_SOUNDBANK

      Loading Soundbank: MID_SOUNDBANK
      Unloading Soundbank: MID_SOUNDBANK

      Loading Soundbank: DELUXE_SOUNDBANK
      java.io.IOException: mark/reset not supported
              at java.io.InputStream.reset(InputStream.java:332)
              at com.sun.media.sound.HeadspaceSoundbank.initialize(HeadspaceSoundbank.java:246)
              at com.sun.media.sound.HeadspaceSoundbank.<init>(HeadspaceSoundbank.java:83)
              at com.sun.media.sound.HsbParser.getSoundbank(HsbParser.java:69)
              at javax.sound.midi.MidiSystem.getSoundbank(MidiSystem.java:290)
              at javax.sound.midi.MidiSystem.getSoundbank(MidiSystem.java:349)
              at SoundbankStuff.loadSoundbank(SoundbankStuff.java:1693)
              at test076.runTest(test076.java:56)
              at test076.main(test076.java:82)
      Just closed synth.

      ###@###.### 2001-09-14
      How does this exception relate to this bug's title ?

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: