(filename)
| 125 | } |
| 126 | |
| 127 | function uniqueOutputPath(filename) { |
| 128 | const parsed = path.parse(filename); |
| 129 | let candidate = path.join(OUTPUTS, filename); |
| 130 | let index = 2; |
| 131 | while (fs.existsSync(candidate)) { |
| 132 | candidate = path.join(OUTPUTS, `${parsed.name}-${index}${parsed.ext}`); |
| 133 | index += 1; |
| 134 | } |
| 135 | return candidate; |
| 136 | } |
| 137 | |
| 138 | function toneFilter(tone, frames, fps, scope = "join") { |
| 139 | if (!tone || frames <= 0) return ""; |
no outgoing calls
no test coverage detected