diff --git a/atom b/atom index 558df16..a8fa26d 100755 --- a/atom +++ b/atom @@ -1088,6 +1088,30 @@ encodeFile::mp3() { progressSpin } +encodeFile::vorbis() { + oggencopts="-Q -q ${destinationquality[$destination]}" + [ -n "$albumartist" ] && oggencopts+=" -c \"ALBUMARTIST=$albumartist\"" + [ -n "$album" ] && oggencopts+=" -l \"$album\"" + [ -n "$artist" ] && oggencopts+=" -a \"$artist\"" + [ -n "$composer" ] && oggencopts+=" -c \"COMPOSER=$composer\"" + [ -n "$disc" ] && oggencopts+=" -c \"DISCNUMBER=$disc\"" + [ -n "$genre" ] && oggencopts+=" -G \"$genre\"" + [ -n "$performer" ] && oggencopts+=" -c \"PERFORMER=$performer\"" + [ -n "$title" ] && oggencopts+=" -t \"$title\"" + [ -n "$track" ] && oggencopts+=" -N \"$track\"" + [ -n "$year" ] && oggencopts+=" -d \"$year\"" + encodetaskid=$( + Insert tasks <<-EOInsert + key ${fileid}oggenc$destination + requires ${soxtaskid:-$decodetaskid} + command_line oggenc $oggencopts -o "$destdir/$destfile.ogg" "$tempdir/$tmpfile.wav" + source_file $fileid + status 0 + EOInsert + ) + progressSpin +} + checkFinished() { #retrieve info from finished transcodeFile() #update counters / metadata