History

add wav output format support

Serge Zirukin committed 16 years ago

Commit e3bc94a1 parent 2bd2a172 files · +9 −2Browse files

Unified · Split

2 files
  1. split2flac.sh +8 −2
  2. split2wav.sh +1 −0
split2flac.sh+8−2
@@ -58,7 +58,7 @@ FORCE=0 · 57 unmodified lines
5858 VERSION=unknown
5959
6060 HELP="\${cG}split2flac version: ${VERSION}
61−Splits one big \${cU}APE/FLAC/WV\$cZ\$cG file to \${cU}FLAC/M4A/MP3/OGG_VORBIS\$cZ\$cG tracks with tagging and renaming.
61+Splits one big \${cU}APE/FLAC/WV\$cZ\$cG file to \${cU}FLAC/M4A/MP3/OGG_VORBIS/WAV\$cZ\$cG tracks with tagging and renaming.
6262
6363 Usage: \${cZ}split2\${FORMAT}.sh [\${cU}OPTIONS\$cZ] \${cU}FILE\$cZ [\${cU}OPTIONS\$cZ]\$cZ
6464 \${cZ}split2\${FORMAT}.sh [\${cU}OPTIONS\$cZ] \${cU}DIR\$cZ [\${cU}OPTIONS\$cZ]\$cZ
@@ -85,7 +85,7 @@ Usage: \${cZ}split2\${FORMAT}.sh [\${cU}OPTIONS\$cZ] \${cU}FILE\$cZ [\${cU}OPTIO · 20 unmodified lines
8585
8686 \$cR*\$cZ - option affects configuration if \$cP'-s'\$cZ option passed.
8787 \${cP}NOTE: \$cG'-c some_file.jpg -s'\$cP only \${cU}allows\$cZ\$cP cover images, it doesn't set a default one.
88−\${cZ}Supported \$cU\${cG}FORMATs\${cZ}: flac, m4a, mp3, ogg.
88+\${cZ}Supported \$cU\${cG}FORMATs\${cZ}: flac, m4a, mp3, ogg, wav.
8989
9090 It's better to pass \$cP'-p'\$cZ option to see what will happen when actually splitting tracks.
9191 You may want to pass \$cP'-s'\$cZ option for the first run to save default configuration
@@ -179,6 +179,7 @@ case ${FORMAT} in · 87 unmodified lines
179179 m4a) $msg "$msg_format M4A";;
180180 mp3) $msg "$msg_format MP3";;
181181 ogg) $msg "$msg_format OGG VORBIS";;
182+ wav) $msg "$msg_format WAVE";;
182183 *) emsg "Unknown output format \"${FORMAT}\""; exit 1;;
183184 esac
184185
@@ -360,6 +361,7 @@ split_file () { · 175 unmodified lines
360361 m4a) ENC="cust ext=m4a faac -q 500 -o %f -";;
361362 mp3) ENC="cust ext=mp3 lame --preset extreme - %f";;
362363 ogg) ENC="cust ext=ogg oggenc -q 10 - -o %f";;
364+ wav) ENC="wav";;
363365 *) emsg "Unknown output format ${FORMAT}"; exit 1;;
364366 esac
365367
@@ -499,6 +501,10 @@ split_file () { · 133 unmodified lines
499501 fi
500502 ;;
501503
504+ wav)
505+ RES=0
506+ ;;
507+
502508 *)
503509 emsg "Unknown output format ${FORMAT}"
504510 return 1
split2wav.sh+1−0
@@ -0,0 +1 @@
1+split2flac.sh

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t