javax.sound.midi.SoundbankResource Java Examples
The following examples show how to use
javax.sound.midi.SoundbankResource.
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: SF2Soundbank.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public void addResource(SoundbankResource resource) { if (resource instanceof SF2Instrument) instruments.add((SF2Instrument)resource); if (resource instanceof SF2Layer) layers.add((SF2Layer)resource); if (resource instanceof SF2Sample) samples.add((SF2Sample)resource); }
Example #2
Source File: SF2Soundbank.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public SoundbankResource[] getResources() { SoundbankResource[] resources = new SoundbankResource[layers.size() + samples.size()]; int j = 0; for (int i = 0; i < layers.size(); i++) resources[j++] = layers.get(i); for (int i = 0; i < samples.size(); i++) resources[j++] = samples.get(i); return resources; }
Example #3
Source File: SF2Soundbank.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public void removeResource(SoundbankResource resource) { if (resource instanceof SF2Instrument) instruments.remove((SF2Instrument)resource); if (resource instanceof SF2Layer) layers.remove((SF2Layer)resource); if (resource instanceof SF2Sample) samples.remove((SF2Sample)resource); }
Example #4
Source File: DLSSoundbank.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
public SoundbankResource[] getResources() { SoundbankResource[] resources = new SoundbankResource[samples.size()]; int j = 0; for (int i = 0; i < samples.size(); i++) resources[j++] = samples.get(i); return resources; }
Example #5
Source File: AddResource.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public static void main(String[] args) throws Exception { SimpleSoundbank soundbank = new SimpleSoundbank(); SoundbankResource res = new SoundbankResource(soundbank, "test", null) { public Object getData() { return null; }}; soundbank.addResource(res); assertEquals(soundbank.getResources().length, 1); assertEquals(soundbank.getResources()[0], res); }
Example #6
Source File: SF2Soundbank.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public void addResource(SoundbankResource resource) { if (resource instanceof SF2Instrument) instruments.add((SF2Instrument)resource); if (resource instanceof SF2Layer) layers.add((SF2Layer)resource); if (resource instanceof SF2Sample) samples.add((SF2Sample)resource); }
Example #7
Source File: SF2Soundbank.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public void removeResource(SoundbankResource resource) { if (resource instanceof SF2Instrument) instruments.remove((SF2Instrument)resource); if (resource instanceof SF2Layer) layers.remove((SF2Layer)resource); if (resource instanceof SF2Sample) samples.remove((SF2Sample)resource); }
Example #8
Source File: DLSSoundbank.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
public SoundbankResource[] getResources() { SoundbankResource[] resources = new SoundbankResource[samples.size()]; int j = 0; for (int i = 0; i < samples.size(); i++) resources[j++] = samples.get(i); return resources; }
Example #9
Source File: AddResource.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public static void main(String[] args) throws Exception { SimpleSoundbank soundbank = new SimpleSoundbank(); SoundbankResource res = new SoundbankResource(soundbank, "test", null) { public Object getData() { return null; }}; soundbank.addResource(res); assertEquals(soundbank.getResources().length, 1); assertEquals(soundbank.getResources()[0], res); }
Example #10
Source File: SF2Soundbank.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public SoundbankResource[] getResources() { SoundbankResource[] resources = new SoundbankResource[layers.size() + samples.size()]; int j = 0; for (int i = 0; i < layers.size(); i++) resources[j++] = layers.get(i); for (int i = 0; i < samples.size(); i++) resources[j++] = samples.get(i); return resources; }
Example #11
Source File: SF2Soundbank.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public void addResource(SoundbankResource resource) { if (resource instanceof SF2Instrument) instruments.add((SF2Instrument)resource); if (resource instanceof SF2Layer) layers.add((SF2Layer)resource); if (resource instanceof SF2Sample) samples.add((SF2Sample)resource); }
Example #12
Source File: SF2Soundbank.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public void removeResource(SoundbankResource resource) { if (resource instanceof SF2Instrument) instruments.remove((SF2Instrument)resource); if (resource instanceof SF2Layer) layers.remove((SF2Layer)resource); if (resource instanceof SF2Sample) samples.remove((SF2Sample)resource); }
Example #13
Source File: DLSSoundbank.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public SoundbankResource[] getResources() { SoundbankResource[] resources = new SoundbankResource[samples.size()]; int j = 0; for (int i = 0; i < samples.size(); i++) resources[j++] = samples.get(i); return resources; }
Example #14
Source File: AddResource.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public static void main(String[] args) throws Exception { SimpleSoundbank soundbank = new SimpleSoundbank(); SoundbankResource res = new SoundbankResource(soundbank, "test", null) { public Object getData() { return null; }}; soundbank.addResource(res); assertEquals(soundbank.getResources().length, 1); assertEquals(soundbank.getResources()[0], res); }
Example #15
Source File: SF2Soundbank.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public SoundbankResource[] getResources() { SoundbankResource[] resources = new SoundbankResource[layers.size() + samples.size()]; int j = 0; for (int i = 0; i < layers.size(); i++) resources[j++] = layers.get(i); for (int i = 0; i < samples.size(); i++) resources[j++] = samples.get(i); return resources; }
Example #16
Source File: SF2Soundbank.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
public SoundbankResource[] getResources() { SoundbankResource[] resources = new SoundbankResource[layers.size() + samples.size()]; int j = 0; for (int i = 0; i < layers.size(); i++) resources[j++] = layers.get(i); for (int i = 0; i < samples.size(); i++) resources[j++] = samples.get(i); return resources; }
Example #17
Source File: SF2Soundbank.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public void removeResource(SoundbankResource resource) { if (resource instanceof SF2Instrument) instruments.remove((SF2Instrument)resource); if (resource instanceof SF2Layer) layers.remove((SF2Layer)resource); if (resource instanceof SF2Sample) samples.remove((SF2Sample)resource); }
Example #18
Source File: DLSSoundbank.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public SoundbankResource[] getResources() { SoundbankResource[] resources = new SoundbankResource[samples.size()]; int j = 0; for (int i = 0; i < samples.size(); i++) resources[j++] = samples.get(i); return resources; }
Example #19
Source File: AddResource.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public static void main(String[] args) throws Exception { SimpleSoundbank soundbank = new SimpleSoundbank(); SoundbankResource res = new SoundbankResource(soundbank, "test", null) { public Object getData() { return null; }}; soundbank.addResource(res); assertEquals(soundbank.getResources().length, 1); assertEquals(soundbank.getResources()[0], res); }
Example #20
Source File: SF2Soundbank.java From Bytecoder with Apache License 2.0 | 5 votes |
@Override public SoundbankResource[] getResources() { SoundbankResource[] resources = new SoundbankResource[layers.size() + samples.size()]; int j = 0; for (int i = 0; i < layers.size(); i++) resources[j++] = layers.get(i); for (int i = 0; i < samples.size(); i++) resources[j++] = samples.get(i); return resources; }
Example #21
Source File: SF2Soundbank.java From Bytecoder with Apache License 2.0 | 5 votes |
public void addResource(SoundbankResource resource) { if (resource instanceof SF2Instrument) instruments.add((SF2Instrument)resource); if (resource instanceof SF2Layer) layers.add((SF2Layer)resource); if (resource instanceof SF2Sample) samples.add((SF2Sample)resource); }
Example #22
Source File: SF2Soundbank.java From Bytecoder with Apache License 2.0 | 5 votes |
public void removeResource(SoundbankResource resource) { if (resource instanceof SF2Instrument) instruments.remove(resource); if (resource instanceof SF2Layer) layers.remove(resource); if (resource instanceof SF2Sample) samples.remove(resource); }
Example #23
Source File: DLSSoundbank.java From Bytecoder with Apache License 2.0 | 5 votes |
@Override public SoundbankResource[] getResources() { SoundbankResource[] resources = new SoundbankResource[samples.size()]; int j = 0; for (int i = 0; i < samples.size(); i++) resources[j++] = samples.get(i); return resources; }
Example #24
Source File: SF2Soundbank.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
@Override public SoundbankResource[] getResources() { SoundbankResource[] resources = new SoundbankResource[layers.size() + samples.size()]; int j = 0; for (int i = 0; i < layers.size(); i++) resources[j++] = layers.get(i); for (int i = 0; i < samples.size(); i++) resources[j++] = samples.get(i); return resources; }
Example #25
Source File: SF2Soundbank.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public void addResource(SoundbankResource resource) { if (resource instanceof SF2Instrument) instruments.add((SF2Instrument)resource); if (resource instanceof SF2Layer) layers.add((SF2Layer)resource); if (resource instanceof SF2Sample) samples.add((SF2Sample)resource); }
Example #26
Source File: SF2Soundbank.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public void removeResource(SoundbankResource resource) { if (resource instanceof SF2Instrument) instruments.remove(resource); if (resource instanceof SF2Layer) layers.remove(resource); if (resource instanceof SF2Sample) samples.remove(resource); }
Example #27
Source File: DLSSoundbank.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
@Override public SoundbankResource[] getResources() { SoundbankResource[] resources = new SoundbankResource[samples.size()]; int j = 0; for (int i = 0; i < samples.size(); i++) resources[j++] = samples.get(i); return resources; }
Example #28
Source File: AddResource.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public static void main(String[] args) throws Exception { SimpleSoundbank soundbank = new SimpleSoundbank(); SoundbankResource res = new SoundbankResource(soundbank, "test", null) { public Object getData() { return null; }}; soundbank.addResource(res); assertEquals(soundbank.getResources().length, 1); assertEquals(soundbank.getResources()[0], res); }
Example #29
Source File: SF2Soundbank.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
public SoundbankResource[] getResources() { SoundbankResource[] resources = new SoundbankResource[layers.size() + samples.size()]; int j = 0; for (int i = 0; i < layers.size(); i++) resources[j++] = layers.get(i); for (int i = 0; i < samples.size(); i++) resources[j++] = samples.get(i); return resources; }
Example #30
Source File: SF2Soundbank.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
public void addResource(SoundbankResource resource) { if (resource instanceof SF2Instrument) instruments.add((SF2Instrument)resource); if (resource instanceof SF2Layer) layers.add((SF2Layer)resource); if (resource instanceof SF2Sample) samples.add((SF2Sample)resource); }