Package com.googlecode.eckoit.events

Examples of com.googlecode.eckoit.events.RecordingSplitEvent


        m_audioInputStream = m_audioInputStream.clone();
        new Recorder().start();

        long splitStartTime = System.currentTimeMillis() - splitTime;

        EventBus.publish(new RecordingSplitEvent(oldsection, recordingID, splitStartTime));
    }
View Full Code Here


            timer.cancel();
            isRecording = false;
            long now = System.currentTimeMillis();
            // final section
            long splitStartTime = now - splitTime;
            RecordingSplitEvent rse = new RecordingSplitEvent(section, recordingID, splitStartTime);
            rse.setIsFinal(true);
            EventBus.publish(rse);
            return (now - recordingStart)/1000;
        }
        return -1;
    }
View Full Code Here

        EventBus.subscribeStrongly(RecordingSplitEvent.class, this);
        EventBus.subscribeStrongly(ExitApplicationMessage.class, new EventSubscriber<ExitApplicationMessage>() {
            @Override
            public void onEvent(ExitApplicationMessage t) {
                running = false;
                completedRecordings.add(new RecordingSplitEvent(null, null, 0));
            }
        });

       
    }
View Full Code Here

    @Override
    public void run() {

        while (running) {
            try {
                RecordingSplitEvent recordingFinished = completedRecordings.take();
                File wav = recordingFinished.getFinishedFile();
                if (wav != null) {
                    if (tooFresh(wav)) {
                        completedRecordings.add(recordingFinished);
                    } else {
                        Logger.getLogger(ContinousAudioConvereter.class.getName()).log(Level.INFO, "converting wav: " + wav.getAbsolutePath());
                        doConversion(recordingFinished.getRecordingID(), wav, recordingFinished.getStartTime());

                    }
                }
            } catch (InterruptedException ex) {
                Logger.getLogger(ContinousAudioConvereter.class.getName()).log(Level.SEVERE, null, ex);
View Full Code Here

TOP

Related Classes of com.googlecode.eckoit.events.RecordingSplitEvent

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.