Improved VU needle mode

This commit is contained in:
Boof2015
2026-05-05 19:21:02 -04:00
parent 98ebe3fc8f
commit d614952a15
11 changed files with 877 additions and 111 deletions
+23
View File
@@ -7,6 +7,7 @@ import { FileBackedProfileLibrary } from '../src/main/profileLibrary'
import {
createDefaultProfile,
extractLocalProfileMetadata,
mergeScopeSettings,
normalizeScopeOrder,
profileFileToProfile,
profileToFileData,
@@ -77,6 +78,28 @@ test('profile file serialization excludes geometry and round-trips with local me
assert.equal(restored.scopeSettings.nowPlaying.showControls, true)
})
test('mergeScopeSettings defaults missing or invalid VU needle channel settings to stereo', () => {
const combined = mergeScopeSettings({
vumeter: {
mode: 'needle',
orientation: 'horizontal',
needleChannels: 'combined',
},
})
const invalid = mergeScopeSettings({
vumeter: {
mode: 'needle',
orientation: 'horizontal',
needleChannels: 'mid',
},
})
const missing = mergeScopeSettings({})
assert.equal(combined.vumeter.needleChannels, 'combined')
assert.equal(invalid.vumeter.needleChannels, 'stereo')
assert.equal(missing.vumeter.needleChannels, 'stereo')
})
test('library saves, renames, deletes, and resolves filename collisions', async () => {
const harness = await createHarness()