INNER CODE UNIT · JavaScript

conversionAttempt

Megabyteceer/thing-editor · thing-editor/electron-main/build-sounds.js:130

		function conversionAttempt() {
			timoutCounter++;
			if (timoutCounter > 5) {
				if (errorArgs) {
					outputError.apply(null, errorArgs);
				}
				cb();
				return;
			}

			try {
				fs.accessSync(fn, fs.constants.R_OK | fs.constants.W_OK);
			} catch (_er) {
				console.log('file reading blocked: ' + fn);
				setTimeout(conversionAttempt, 1000);
				return;
			}
			let ffmpegPath = getCommandPath('ffmpeg');

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…