0.12.0 Begin neu Architecture

This commit is contained in:
2026-03-18 15:35:10 +00:00
parent d00191324b
commit 0a9cf6969f
30 changed files with 4570 additions and 183 deletions
+12 -1
View File
@@ -406,7 +406,8 @@ async function ripAndEncode(options) {
onLog,
onProcessHandle,
isCancelled,
context
context,
skipRip = false
} = options;
if (!SUPPORTED_FORMATS.has(format)) {
@@ -437,6 +438,15 @@ async function ripAndEncode(options) {
};
// ── Phase 1: Rip each selected track to WAV ──────────────────────────────
if (skipRip) {
// Encode-only: WAV-Dateien müssen bereits vorhanden sein
for (const track of tracksToRip) {
const wavFile = path.join(rawWavDir, `track${String(track.position).padStart(2, '0')}.cdda.wav`);
if (!fs.existsSync(wavFile)) {
throw new Error(`Encode-only: WAV-Datei fehlt für Track ${track.position} (${wavFile})`);
}
}
} else {
for (let i = 0; i < tracksToRip.length; i++) {
assertNotCancelled(isCancelled);
const track = tracksToRip[i];
@@ -501,6 +511,7 @@ async function ripAndEncode(options) {
log('info', `Track ${track.position} gerippt.`);
}
} // end if (!skipRip)
// ── Phase 2: Encode WAVs to target format ─────────────────────────────────
const encodeResults = [];