From 40933d0018b9408ba6945db80d657304cec1640a Mon Sep 17 00:00:00 2001 From: Mattk70 Date: Sat, 18 May 2024 09:56:07 +0100 Subject: [PATCH] Added GMT to clarify TZ of export filenames commented on the purpose of the command line switches in main.js --- js/ui.js | 6 +++--- main.js | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/js/ui.js b/js/ui.js index 016751d3..1aa46158 100644 --- a/js/ui.js +++ b/js/ui.js @@ -1516,7 +1516,7 @@ window.onload = async () => { backend: 'webgpu', hasNode: false, tensorflow: { threads: DIAGNOSTICS['Cores'], batchSize: 32 }, - webgpu: { threads: 2, batchSize: 4 }, + webgpu: { threads: 2, batchSize: 8 }, webgl: { threads: 2, batchSize: 32 }, audio: { gain: 0, format: 'mp3', bitrate: 192, quality: 5, downmix: false, padding: false, fade: false, notification: true, normalise: false }, limit: 500, @@ -3381,7 +3381,7 @@ function onChartData(args) { start = result.position; end = result.end || start + 3; const datetime = new Date(result.timestamp).toISOString().replace(/[TZ]/g, ' ').replace(/\.\d{3}/, '').replace(/[-:]/g, '-').trim(); - filename = `${result.cname}_${datetime}_export.${config.audio.format}`; + filename = `${result.cname}_${datetime}GMT_export.${config.audio.format}`; } else if (start === undefined) { if (region.start) { start = region.start + bufferBegin; @@ -3391,7 +3391,7 @@ function onChartData(args) { end = currentBuffer.duration; } const dateString = new Date(fileStart + (start * 1000)).toISOString().replace(/[TZ]/g, ' ').replace(/\.\d{3}/, '').replace(/[-:]/g, '-').trim(); - filename = dateString + '_export.' + config.audio.format; + filename = dateString + 'GMT_export.' + config.audio.format; } let metadata = { diff --git a/main.js b/main.js index 5ae75693..557099ad 100644 --- a/main.js +++ b/main.js @@ -1,7 +1,9 @@ const { app, Menu, dialog, ipcMain, MessageChannelMain, BrowserWindow, globalShortcut } = require('electron'); app.commandLine.appendSwitch('disable-renderer-backgrounding'); +// WebGPU flags needed for Linux app.commandLine.appendSwitch('enable-unsafe-webgpu'); app.commandLine.appendSwitch('enable-features','Vulkan'); + const { autoUpdater } = require("electron-updater"); const log = require('electron-log');