Package net.angusi.sw.minidisc.audioobjects

Examples of net.angusi.sw.minidisc.audioobjects.Clip


        File file = fileChooser.showOpenDialog(stage);
        if (file != null) {
            int insertAt = mainTable.getSelectionModel().getSelectedIndex() == -1 ? mainTable.getItems().size() : mainTable.getSelectionModel().getSelectedIndex();
            System.out.println("Adding " + file.getName() + " to cue list.");
            Clip newClip = new Clip(file);
            audioClips.add(insertAt, newClip);
        }
    }
View Full Code Here


    private void removeClipFromCueList() {
        audioClips.remove(mainTable.getSelectionModel().getSelectedItem());
    }

    private void playSelectedTrack() {
        Clip selectedClip = mainTable.getSelectionModel().getSelectedItem();
        System.out.println("Asking clip "+(selectedClip.getDescription())+" to play");
        new Thread(new Task<Void>() {
            @Override
            protected Void call() throws Exception {
                selectedClip.playClip();
                return null;
            }
        }).start();

        mainTable.getSelectionModel().selectBelowCell();
View Full Code Here

        mainTable.getSelectionModel().selectBelowCell();
    }

    private void stopSelectedTrack() {
        Clip selectedClip = mainTable.getSelectionModel().getSelectedItem();
        selectedClip.stopClip();
    }
View Full Code Here

            audioClip.stopClip();
        }
    }

    private void fadeSelectedTrack() {
        Clip selectedClip = mainTable.getSelectionModel().getSelectedItem();
        selectedClip.fadeClip();
    }
View Full Code Here

TOP

Related Classes of net.angusi.sw.minidisc.audioobjects.Clip

Copyright © 2018 www.massapicom. 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.