Skip to content

Commit

Permalink
check if audio path exists
Browse files Browse the repository at this point in the history
  • Loading branch information
nzbasic committed Aug 26, 2021
1 parent c9923df commit 140e3bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/util/bpm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const calculateFullTempo = (rate: number): string => {

const generateAudio = (audioPath: string, atempo: string, output: string) => {
return new Promise<void>((res, rej) => {
if (!fs.existsSync(output)) {
if (!fs.existsSync(output) && fs.existsSync(audioPath)) {
try {
ffmpeg()
.input(audioPath)
Expand Down

0 comments on commit 140e3bf

Please sign in to comment.