try {
mp3 = convertToMP3(recordingID, wav);
if (config.isStream()) {
File ts = convertToTs(recordingID, mp3);
StreamReadyEvent sre = new StreamReadyEvent(mp3, "video/MP2T", sectionStartTime);
sre.setAvailableToStream(ts);
sre.setStreamDuration((int) (SplitAudioRecorder.getSplitTime() / 1000));
sre.setSegmentCount(getSegmentCount(wav));
EventBus.publish(sre);
}
ogg = convertToOGG(recordingID, wav);
} catch (Exception ex) {
Logger.getLogger(ContinousAudioConvereter.class.getName()).log(Level.SEVERE, null, ex);