equal
deleted
inserted
replaced
53 AudioSynthesizer synth = new SoftSynthesizer(); |
53 AudioSynthesizer synth = new SoftSynthesizer(); |
54 synth.openStream(null, null); |
54 synth.openStream(null, null); |
55 Soundbank defsbk = synth.getDefaultSoundbank(); |
55 Soundbank defsbk = synth.getDefaultSoundbank(); |
56 if(defsbk != null) |
56 if(defsbk != null) |
57 { |
57 { |
58 assertTrue(synth.getLoadedInstruments().length == 0); |
|
59 synth.unloadAllInstruments(defsbk); |
58 synth.unloadAllInstruments(defsbk); |
60 SimpleSoundbank sbk = new SimpleSoundbank(); |
59 SimpleSoundbank sbk = new SimpleSoundbank(); |
61 SimpleInstrument ins = new SimpleInstrument(); |
60 SimpleInstrument ins = new SimpleInstrument(); |
62 ins.setPatch(new Patch(0,1)); |
61 ins.setPatch(new Patch(0,1)); |
63 sbk.addInstrument(ins); |
62 sbk.addInstrument(ins); |