com.sun.media.sound.SF2SoundbankReader Java Examples
The following examples show how to use
com.sun.media.sound.SF2SoundbankReader.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TestGetSoundbankInputStream.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
public static void main(String[] args) throws Exception { File file = new File(System.getProperty("test.src", "."), "ding.sf2"); FileInputStream fis = new FileInputStream(file); BufferedInputStream bis = new BufferedInputStream(fis); try { Soundbank sf2 = new SF2SoundbankReader().getSoundbank(bis); assertTrue(sf2.getInstruments().length == 1); Patch patch = sf2.getInstruments()[0].getPatch(); assertTrue(patch.getProgram() == 0); assertTrue(patch.getBank() == 0); } finally { bis.close(); } }
Example #2
Source File: TestGetSoundbankInputStream2.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
public static void main(String[] args) throws Exception { File file = new File(System.getProperty("test.src", "."), "ding.sf2"); FileInputStream fis = new FileInputStream(file); BufferedInputStream bis = new BufferedInputStream(fis); try { InputStream badis = new BadInputStream(bis); Soundbank sf2 = new SF2SoundbankReader().getSoundbank(badis); assertTrue(sf2.getInstruments().length == 1); Patch patch = sf2.getInstruments()[0].getPatch(); assertTrue(patch.getProgram() == 0); assertTrue(patch.getBank() == 0); } finally { bis.close(); } }
Example #3
Source File: TestGetSoundbankInputStream.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
public static void main(String[] args) throws Exception { File file = new File(System.getProperty("test.src", "."), "ding.sf2"); FileInputStream fis = new FileInputStream(file); BufferedInputStream bis = new BufferedInputStream(fis); try { Soundbank sf2 = new SF2SoundbankReader().getSoundbank(bis); assertTrue(sf2.getInstruments().length == 1); Patch patch = sf2.getInstruments()[0].getPatch(); assertTrue(patch.getProgram() == 0); assertTrue(patch.getBank() == 0); } finally { bis.close(); } }
Example #4
Source File: TestGetSoundbankInputStream2.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
public static void main(String[] args) throws Exception { File file = new File(System.getProperty("test.src", "."), "ding.sf2"); FileInputStream fis = new FileInputStream(file); BufferedInputStream bis = new BufferedInputStream(fis); try { InputStream badis = new BadInputStream(bis); Soundbank sf2 = new SF2SoundbankReader().getSoundbank(badis); assertTrue(sf2.getInstruments().length == 1); Patch patch = sf2.getInstruments()[0].getPatch(); assertTrue(patch.getProgram() == 0); assertTrue(patch.getBank() == 0); } finally { bis.close(); } }
Example #5
Source File: TestGetSoundbankInputStream.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
public static void main(String[] args) throws Exception { File file = new File(System.getProperty("test.src", "."), "ding.sf2"); FileInputStream fis = new FileInputStream(file); BufferedInputStream bis = new BufferedInputStream(fis); try { Soundbank sf2 = new SF2SoundbankReader().getSoundbank(bis); assertTrue(sf2.getInstruments().length == 1); Patch patch = sf2.getInstruments()[0].getPatch(); assertTrue(patch.getProgram() == 0); assertTrue(patch.getBank() == 0); } finally { bis.close(); } }
Example #6
Source File: TestGetSoundbankInputStream.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
public static void main(String[] args) throws Exception { File file = new File(System.getProperty("test.src", "."), "ding.sf2"); FileInputStream fis = new FileInputStream(file); BufferedInputStream bis = new BufferedInputStream(fis); try { Soundbank sf2 = new SF2SoundbankReader().getSoundbank(bis); assertTrue(sf2.getInstruments().length == 1); Patch patch = sf2.getInstruments()[0].getPatch(); assertTrue(patch.getProgram() == 0); assertTrue(patch.getBank() == 0); } finally { bis.close(); } }
Example #7
Source File: TestGetSoundbankInputStream2.java From hottub with GNU General Public License v2.0 | 6 votes |
public static void main(String[] args) throws Exception { File file = new File(System.getProperty("test.src", "."), "ding.sf2"); FileInputStream fis = new FileInputStream(file); BufferedInputStream bis = new BufferedInputStream(fis); try { InputStream badis = new BadInputStream(bis); Soundbank sf2 = new SF2SoundbankReader().getSoundbank(badis); assertTrue(sf2.getInstruments().length == 1); Patch patch = sf2.getInstruments()[0].getPatch(); assertTrue(patch.getProgram() == 0); assertTrue(patch.getBank() == 0); } finally { bis.close(); } }
Example #8
Source File: TestGetSoundbankInputStream.java From hottub with GNU General Public License v2.0 | 6 votes |
public static void main(String[] args) throws Exception { File file = new File(System.getProperty("test.src", "."), "ding.sf2"); FileInputStream fis = new FileInputStream(file); BufferedInputStream bis = new BufferedInputStream(fis); try { Soundbank sf2 = new SF2SoundbankReader().getSoundbank(bis); assertTrue(sf2.getInstruments().length == 1); Patch patch = sf2.getInstruments()[0].getPatch(); assertTrue(patch.getProgram() == 0); assertTrue(patch.getBank() == 0); } finally { bis.close(); } }
Example #9
Source File: TestGetSoundbankInputStream2.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
public static void main(String[] args) throws Exception { File file = new File(System.getProperty("test.src", "."), "ding.sf2"); FileInputStream fis = new FileInputStream(file); BufferedInputStream bis = new BufferedInputStream(fis); try { InputStream badis = new BadInputStream(bis); Soundbank sf2 = new SF2SoundbankReader().getSoundbank(badis); assertTrue(sf2.getInstruments().length == 1); Patch patch = sf2.getInstruments()[0].getPatch(); assertTrue(patch.getProgram() == 0); assertTrue(patch.getBank() == 0); } finally { bis.close(); } }
Example #10
Source File: TestGetSoundbankInputStream2.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
public static void main(String[] args) throws Exception { File file = new File(System.getProperty("test.src", "."), "ding.sf2"); FileInputStream fis = new FileInputStream(file); BufferedInputStream bis = new BufferedInputStream(fis); try { InputStream badis = new BadInputStream(bis); Soundbank sf2 = new SF2SoundbankReader().getSoundbank(badis); assertTrue(sf2.getInstruments().length == 1); Patch patch = sf2.getInstruments()[0].getPatch(); assertTrue(patch.getProgram() == 0); assertTrue(patch.getBank() == 0); } finally { bis.close(); } }
Example #11
Source File: TestGetSoundbankInputStream2.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
public static void main(String[] args) throws Exception { File file = new File(System.getProperty("test.src", "."), "ding.sf2"); FileInputStream fis = new FileInputStream(file); BufferedInputStream bis = new BufferedInputStream(fis); try { InputStream badis = new BadInputStream(bis); Soundbank sf2 = new SF2SoundbankReader().getSoundbank(badis); assertTrue(sf2.getInstruments().length == 1); Patch patch = sf2.getInstruments()[0].getPatch(); assertTrue(patch.getProgram() == 0); assertTrue(patch.getBank() == 0); } finally { bis.close(); } }
Example #12
Source File: TestGetSoundbankInputStream.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
public static void main(String[] args) throws Exception { File file = new File(System.getProperty("test.src", "."), "ding.sf2"); FileInputStream fis = new FileInputStream(file); BufferedInputStream bis = new BufferedInputStream(fis); try { Soundbank sf2 = new SF2SoundbankReader().getSoundbank(bis); assertTrue(sf2.getInstruments().length == 1); Patch patch = sf2.getInstruments()[0].getPatch(); assertTrue(patch.getProgram() == 0); assertTrue(patch.getBank() == 0); } finally { bis.close(); } }
Example #13
Source File: TestGetSoundbankInputStream2.java From jdk8u_jdk with GNU General Public License v2.0 | 6 votes |
public static void main(String[] args) throws Exception { File file = new File(System.getProperty("test.src", "."), "ding.sf2"); FileInputStream fis = new FileInputStream(file); BufferedInputStream bis = new BufferedInputStream(fis); try { InputStream badis = new BadInputStream(bis); Soundbank sf2 = new SF2SoundbankReader().getSoundbank(badis); assertTrue(sf2.getInstruments().length == 1); Patch patch = sf2.getInstruments()[0].getPatch(); assertTrue(patch.getProgram() == 0); assertTrue(patch.getBank() == 0); } finally { bis.close(); } }
Example #14
Source File: TestGetSoundbankInputStream.java From jdk8u_jdk with GNU General Public License v2.0 | 6 votes |
public static void main(String[] args) throws Exception { File file = new File(System.getProperty("test.src", "."), "ding.sf2"); FileInputStream fis = new FileInputStream(file); BufferedInputStream bis = new BufferedInputStream(fis); try { Soundbank sf2 = new SF2SoundbankReader().getSoundbank(bis); assertTrue(sf2.getInstruments().length == 1); Patch patch = sf2.getInstruments()[0].getPatch(); assertTrue(patch.getProgram() == 0); assertTrue(patch.getBank() == 0); } finally { bis.close(); } }
Example #15
Source File: TestGetSoundbankInputStream2.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
public static void main(String[] args) throws Exception { File file = new File(System.getProperty("test.src", "."), "ding.sf2"); FileInputStream fis = new FileInputStream(file); BufferedInputStream bis = new BufferedInputStream(fis); try { InputStream badis = new BadInputStream(bis); Soundbank sf2 = new SF2SoundbankReader().getSoundbank(badis); assertTrue(sf2.getInstruments().length == 1); Patch patch = sf2.getInstruments()[0].getPatch(); assertTrue(patch.getProgram() == 0); assertTrue(patch.getBank() == 0); } finally { bis.close(); } }
Example #16
Source File: TestGetSoundbankInputStream.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
public static void main(String[] args) throws Exception { File file = new File(System.getProperty("test.src", "."), "ding.sf2"); FileInputStream fis = new FileInputStream(file); BufferedInputStream bis = new BufferedInputStream(fis); try { Soundbank sf2 = new SF2SoundbankReader().getSoundbank(bis); assertTrue(sf2.getInstruments().length == 1); Patch patch = sf2.getInstruments()[0].getPatch(); assertTrue(patch.getProgram() == 0); assertTrue(patch.getBank() == 0); } finally { bis.close(); } }
Example #17
Source File: TestGetSoundbankInputStream2.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 6 votes |
public static void main(String[] args) throws Exception { File file = new File(System.getProperty("test.src", "."), "ding.sf2"); FileInputStream fis = new FileInputStream(file); BufferedInputStream bis = new BufferedInputStream(fis); try { InputStream badis = new BadInputStream(bis); Soundbank sf2 = new SF2SoundbankReader().getSoundbank(badis); assertTrue(sf2.getInstruments().length == 1); Patch patch = sf2.getInstruments()[0].getPatch(); assertTrue(patch.getProgram() == 0); assertTrue(patch.getBank() == 0); } finally { bis.close(); } }
Example #18
Source File: TestGetSoundbankInputStream.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 6 votes |
public static void main(String[] args) throws Exception { File file = new File(System.getProperty("test.src", "."), "ding.sf2"); FileInputStream fis = new FileInputStream(file); BufferedInputStream bis = new BufferedInputStream(fis); try { Soundbank sf2 = new SF2SoundbankReader().getSoundbank(bis); assertTrue(sf2.getInstruments().length == 1); Patch patch = sf2.getInstruments()[0].getPatch(); assertTrue(patch.getProgram() == 0); assertTrue(patch.getBank() == 0); } finally { bis.close(); } }
Example #19
Source File: TestGetSoundbankInputStream2.java From dragonwell8_jdk with GNU General Public License v2.0 | 6 votes |
public static void main(String[] args) throws Exception { File file = new File(System.getProperty("test.src", "."), "ding.sf2"); FileInputStream fis = new FileInputStream(file); BufferedInputStream bis = new BufferedInputStream(fis); try { InputStream badis = new BadInputStream(bis); Soundbank sf2 = new SF2SoundbankReader().getSoundbank(badis); assertTrue(sf2.getInstruments().length == 1); Patch patch = sf2.getInstruments()[0].getPatch(); assertTrue(patch.getProgram() == 0); assertTrue(patch.getBank() == 0); } finally { bis.close(); } }
Example #20
Source File: TestGetSoundbankInputStream.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
public static void main(String[] args) throws Exception { File file = new File(System.getProperty("test.src", "."), "ding.sf2"); FileInputStream fis = new FileInputStream(file); BufferedInputStream bis = new BufferedInputStream(fis); try { Soundbank sf2 = new SF2SoundbankReader().getSoundbank(bis); assertTrue(sf2.getInstruments().length == 1); Patch patch = sf2.getInstruments()[0].getPatch(); assertTrue(patch.getProgram() == 0); assertTrue(patch.getBank() == 0); } finally { bis.close(); } }
Example #21
Source File: TestGetSoundbankInputStream.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
public static void main(String[] args) throws Exception { File file = new File(System.getProperty("test.src", "."), "ding.sf2"); FileInputStream fis = new FileInputStream(file); BufferedInputStream bis = new BufferedInputStream(fis); try { Soundbank sf2 = new SF2SoundbankReader().getSoundbank(bis); assertTrue(sf2.getInstruments().length == 1); Patch patch = sf2.getInstruments()[0].getPatch(); assertTrue(patch.getProgram() == 0); assertTrue(patch.getBank() == 0); } finally { bis.close(); } }
Example #22
Source File: TestGetSoundbankInputStream2.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
public static void main(String[] args) throws Exception { File file = new File(System.getProperty("test.src", "."), "ding.sf2"); FileInputStream fis = new FileInputStream(file); BufferedInputStream bis = new BufferedInputStream(fis); try { InputStream badis = new BadInputStream(bis); Soundbank sf2 = new SF2SoundbankReader().getSoundbank(badis); assertTrue(sf2.getInstruments().length == 1); Patch patch = sf2.getInstruments()[0].getPatch(); assertTrue(patch.getProgram() == 0); assertTrue(patch.getBank() == 0); } finally { bis.close(); } }
Example #23
Source File: TestGetSoundbankInputStream2.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public static void main(String[] args) throws Exception { File file = new File(System.getProperty("test.src", "."), "ding.sf2"); FileInputStream fis = new FileInputStream(file); BufferedInputStream bis = new BufferedInputStream(fis); try { InputStream badis = new BadInputStream(bis); Soundbank sf2 = new SF2SoundbankReader().getSoundbank(badis); assertTrue(sf2.getInstruments().length == 1); Patch patch = sf2.getInstruments()[0].getPatch(); assertTrue(patch.getProgram() == 0); assertTrue(patch.getBank() == 0); } finally { bis.close(); } }
Example #24
Source File: TestGetSoundbankInputStream.java From dragonwell8_jdk with GNU General Public License v2.0 | 6 votes |
public static void main(String[] args) throws Exception { File file = new File(System.getProperty("test.src", "."), "ding.sf2"); FileInputStream fis = new FileInputStream(file); BufferedInputStream bis = new BufferedInputStream(fis); try { Soundbank sf2 = new SF2SoundbankReader().getSoundbank(bis); assertTrue(sf2.getInstruments().length == 1); Patch patch = sf2.getInstruments()[0].getPatch(); assertTrue(patch.getProgram() == 0); assertTrue(patch.getBank() == 0); } finally { bis.close(); } }
Example #25
Source File: TestGetSoundbankInputStream.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public static void main(String[] args) throws Exception { File file = new File(System.getProperty("test.src", "."), "ding.sf2"); FileInputStream fis = new FileInputStream(file); BufferedInputStream bis = new BufferedInputStream(fis); try { Soundbank sf2 = new SF2SoundbankReader().getSoundbank(bis); assertTrue(sf2.getInstruments().length == 1); Patch patch = sf2.getInstruments()[0].getPatch(); assertTrue(patch.getProgram() == 0); assertTrue(patch.getBank() == 0); } finally { bis.close(); } }
Example #26
Source File: TestGetSoundbankInputStream2.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
public static void main(String[] args) throws Exception { File file = new File(System.getProperty("test.src", "."), "ding.sf2"); FileInputStream fis = new FileInputStream(file); BufferedInputStream bis = new BufferedInputStream(fis); try { InputStream badis = new BadInputStream(bis); Soundbank sf2 = new SF2SoundbankReader().getSoundbank(badis); assertTrue(sf2.getInstruments().length == 1); Patch patch = sf2.getInstruments()[0].getPatch(); assertTrue(patch.getProgram() == 0); assertTrue(patch.getBank() == 0); } finally { bis.close(); } }
Example #27
Source File: TestGetSoundbankUrl.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
public static void main(String[] args) throws Exception { File file = new File(System.getProperty("test.src", "."), "ding.sf2"); URL url = file.toURI().toURL(); Soundbank sf2 = new SF2SoundbankReader().getSoundbank(url); assertTrue(sf2.getInstruments().length == 1); Patch patch = sf2.getInstruments()[0].getPatch(); assertTrue(patch.getProgram() == 0); assertTrue(patch.getBank() == 0); }
Example #28
Source File: TestGetSoundbankFile.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public static void main(String[] args) throws Exception { File file = new File(System.getProperty("test.src", "."), "ding.sf2"); Soundbank sf2 = new SF2SoundbankReader().getSoundbank(file); assertTrue(sf2.getInstruments().length == 1); Patch patch = sf2.getInstruments()[0].getPatch(); assertTrue(patch.getProgram() == 0); assertTrue(patch.getBank() == 0); }
Example #29
Source File: TestGetSoundbankFile.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
public static void main(String[] args) throws Exception { File file = new File(System.getProperty("test.src", "."), "ding.sf2"); Soundbank sf2 = new SF2SoundbankReader().getSoundbank(file); assertTrue(sf2.getInstruments().length == 1); Patch patch = sf2.getInstruments()[0].getPatch(); assertTrue(patch.getProgram() == 0); assertTrue(patch.getBank() == 0); }
Example #30
Source File: TestGetSoundbankUrl.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
public static void main(String[] args) throws Exception { File file = new File(System.getProperty("test.src", "."), "ding.sf2"); URL url = file.toURI().toURL(); Soundbank sf2 = new SF2SoundbankReader().getSoundbank(url); assertTrue(sf2.getInstruments().length == 1); Patch patch = sf2.getInstruments()[0].getPatch(); assertTrue(patch.getProgram() == 0); assertTrue(patch.getBank() == 0); }