Skip to content

Commit

Permalink
Fix Wav to Ogg method
Browse files Browse the repository at this point in the history
  • Loading branch information
kmturley committed Oct 21, 2023
1 parent 8cf465a commit 0659c7f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/encode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
encodeOggToFlac,
encodeOggToWav,
encodeWavToFlac,
encodeWavToOgg,
fileCreate,
log,
logEnable,
Expand Down Expand Up @@ -46,7 +47,7 @@ const encode = new Command('encode')
if (options.wav) encodeOggToWav(file);
} else if (fileExt === 'wav') {
if (options.flac) encodeWavToFlac(file);
if (options.ogg) encodeWavToFlac(file);
if (options.ogg) encodeWavToOgg(file);
} else {
console.log(`Unsupported file extension ${fileExt}`);
}
Expand Down

0 comments on commit 0659c7f

Please sign in to comment.