Examples of PresetPackage


Examples of com.pcmsolutions.device.EMU.E4.packaging.PresetPackage

            }
        }
    }

    private void createAndSavePresetPackage(PresetContext pc, Integer[] indexes, String name, String notes, boolean is, AudioFileFormat.Type format, boolean im, boolean imm) throws CommandFailedException {
        PresetPackage pkg = null;
        try {
            pkg = PackageFactory.createPresetPackage(pc, indexes, true, name, notes, im, imm, is, format, null);
        } catch (PackageGenerationException e) {
            throw new CommandFailedException("Error saving preset package: " + e.getMessage());
        }
View Full Code Here

Examples of com.pcmsolutions.device.EMU.E4.packaging.PresetPackage

            fc.setAccessory(p);
            fc.addPropertyChangeListener(new PropertyChangeListener() {
                public void propertyChange(PropertyChangeEvent evt) {
                    if (evt.getPropertyName().equals(JFileChooser.SELECTED_FILE_CHANGED_PROPERTY)) {
                        PresetPackage pkg = null;
                        File sf = fc.getSelectedFile();

                        if (sf != null && !sf.isDirectory())
                            try {
                                pkg = PackageFactory.extractPresetPackage(fc.getSelectedFile());
                                if (pkg != null) {
                                    phip.setHeader(pkg.getHeader());
                                    if (pkg.getSamplePackage() != null)
                                        phip.setSampleHeader(pkg.getSamplePackage().getHeader());
                                    else
                                        phip.setSampleHeader(null);
                                } else
                                    phip.setHeader(null);
                            } catch (CommandFailedException e) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.