feat: added an option to allow user choose whether to trim leading silence when bouncing audio

This commit is contained in:
Xiaohan-Tian
2026-05-18 18:28:31 -07:00
parent 47d1d98134
commit fe1b4fc8ae
9 changed files with 236 additions and 4 deletions
@@ -3,6 +3,7 @@ import { CONFIG_UPGRADER_CONSTANTS } from '../../constants/coreConstants';
import { upgradeConfigToV1 } from './upgradeConfigToV1';
import { upgradeConfigToV2 } from './upgradeConfigToV2';
import { upgradeConfigToV3 } from './upgradeConfigToV3';
import { upgradeConfigToV4 } from './upgradeConfigToV4';
/**
* KGConfigUpgrader — Orchestrates app-level migrations (e.g., storage backend changes).
@@ -43,6 +44,10 @@ export class KGConfigUpgrader {
await upgradeConfigToV3();
break;
}
case 4: {
await upgradeConfigToV4();
break;
}
default: {
throw new Error(`No config upgrader found for version ${nextVersion}`);
}