Java 类javax.sound.midi.SoundbankResource 实例源码

项目:OpenJSharp    文件:SF2Soundbank.java   
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;
}
项目:OpenJSharp    文件:SF2Soundbank.java   
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);
}
项目:OpenJSharp    文件:SF2Soundbank.java   
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);
}
项目:OpenJSharp    文件:DLSSoundbank.java   
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;
}
项目:jdk8u-jdk    文件:SF2Soundbank.java   
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;
}
项目:jdk8u-jdk    文件:SF2Soundbank.java   
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);
}
项目:jdk8u-jdk    文件:SF2Soundbank.java   
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);
}
项目:jdk8u-jdk    文件:DLSSoundbank.java   
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;
}
项目:jdk8u-jdk    文件:AddResource.java   
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);
}
项目:openjdk-jdk10    文件:SF2Soundbank.java   
@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;
}
项目:openjdk-jdk10    文件:SF2Soundbank.java   
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);
}
项目:openjdk-jdk10    文件:SF2Soundbank.java   
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);
}
项目:openjdk-jdk10    文件:DLSSoundbank.java   
@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;
}
项目:openjdk-jdk10    文件:AddResource.java   
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);
}
项目:openjdk9    文件:SF2Soundbank.java   
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;
}
项目:openjdk9    文件:SF2Soundbank.java   
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);
}
项目:openjdk9    文件:SF2Soundbank.java   
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);
}
项目:openjdk9    文件:DLSSoundbank.java   
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;
}
项目:openjdk9    文件:AddResource.java   
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);
}
项目:jdk8u_jdk    文件:SF2Soundbank.java   
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;
}
项目:jdk8u_jdk    文件:SF2Soundbank.java   
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);
}
项目:jdk8u_jdk    文件:SF2Soundbank.java   
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);
}
项目:jdk8u_jdk    文件:DLSSoundbank.java   
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;
}
项目:jdk8u_jdk    文件:AddResource.java   
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);
}
项目:lookaside_java-1.8.0-openjdk    文件:SF2Soundbank.java   
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;
}
项目:lookaside_java-1.8.0-openjdk    文件:SF2Soundbank.java   
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);
}
项目:lookaside_java-1.8.0-openjdk    文件:SF2Soundbank.java   
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);
}
项目:lookaside_java-1.8.0-openjdk    文件:DLSSoundbank.java   
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;
}
项目:lookaside_java-1.8.0-openjdk    文件:AddResource.java   
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);
}
项目:TuxGuitar-1.3.1-fork    文件:SF2Soundbank.java   
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;
}
项目:TuxGuitar-1.3.1-fork    文件:SF2Soundbank.java   
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);
}
项目:TuxGuitar-1.3.1-fork    文件:SF2Soundbank.java   
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);
}
项目:TuxGuitar-1.3.1-fork    文件:DLSSoundbank.java   
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;
}
项目:infobip-open-jdk-8    文件:SF2Soundbank.java   
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;
}
项目:infobip-open-jdk-8    文件:SF2Soundbank.java   
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);
}
项目:infobip-open-jdk-8    文件:SF2Soundbank.java   
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);
}
项目:infobip-open-jdk-8    文件:DLSSoundbank.java   
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;
}
项目:infobip-open-jdk-8    文件:AddResource.java   
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);
}
项目:jdk8u-dev-jdk    文件:SF2Soundbank.java   
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;
}
项目:jdk8u-dev-jdk    文件:SF2Soundbank.java   
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);
}