Skip to content

Commit

Permalink
Added GMT to clarify TZ of export filenames
Browse files Browse the repository at this point in the history
commented on the purpose of the command line switches in main.js
  • Loading branch information
Mattk70 committed May 18, 2024
1 parent 6208523 commit 40933d0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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;
Expand All @@ -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 = {
Expand Down
2 changes: 2 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
@@ -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');

Expand Down

0 comments on commit 40933d0

Please sign in to comment.