Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37914250
en ru br
ALT Linux repositórios
S:1.2.1-alt7
5.0: 1.2.1-alt4
4.1: 1.2.1-alt3
4.0: 1.2.1-alt2

Group :: Som
RPM: wavsplit

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: wavsplit-1.2.1-alt.patch
Download


 Makefile   |   6 +--
 test.sh    |  57 ---------------------------
 wavren     | Bin 13901 -> 0 bytes
 wavren.c   |  15 +++----
 wavsplit   | Bin 25195 -> 0 bytes
 wavsplit.c | 130 +++++++++++++++++++++++++++++--------------------------------
 wavsplit.h |  36 ++++++++---------
 7 files changed, 91 insertions(+), 153 deletions(-)
diff --git a/Makefile b/Makefile
old mode 100755
new mode 100644
index e6b636e..b961f80
--- a/Makefile
+++ b/Makefile
@@ -7,15 +7,15 @@ version = 1.2.1
 
 CC = gcc
 CFLAGS = -Wall
-LDFLAGS = -lm
+LDFLAGS =
 
 all: wavsplit wavren
 
 wavsplit:  wavsplit.c wavsplit.h
-	gcc $(CFLAGS) wavsplit.c $(LDFLAGS) -o $@
+	$(CC) $(CFLAGS) $< $(LDFLAGS) -o $@
 
 wavren: wavren.c
-	gcc $(CFLAGS) wavren.c -o $@
+	$(CC) $(CFLAGS) $< $(LDFLAGS) -o $@
 
 install:
 	cp wavsplit $(BIN)
diff --git a/test.sh b/test.sh
deleted file mode 100755
index 49a2b7c..0000000
--- a/test.sh
+++ /dev/null
@@ -1,57 +0,0 @@
-#!/bin/sh
-# minutes and seconds, frames - illegal frames
-./wavsplit --frames 12 ~/waves/long.wav 50:01:12.2 119:59:2.2
-
-# minutes and seconds, frames - illegal frames
-./wavsplit --frames 24 ~/waves/long.wav 50:01:24.0 119:59:2.2
-
-# minutes and seconds, frames - illegal frames
-./wavsplit --frames 25 ~/waves/long.wav 50:01:25.0 119:59:2.2
-
-# minutes and seconds, frames - illegal frames
-./wavsplit --frames 30 ~/waves/long.wav 50:01:30.0 119:59:2.2
-
-# minutes and seconds, frames - illegal frames
-./wavsplit --frames 75 ~/waves/long.wav 50:01:75.0 119:59:2.2
-
-# minutes and seconds, frames OK
-./wavsplit --frames 12 ~/waves/long.wav 50:01:11.99 119:59:2.2
-
-# minutes and seconds, frames OK
-./wavsplit --frames 24 ~/waves/long.wav 50:01:23.99 119:59:2.2
-
-# minutes and seconds, frames OK
-./wavsplit --frames 25 ~/waves/long.wav 50:01:24.99 119:59:2.2
-
-# minutes and seconds, frames OK
-./wavsplit --frames 30 ~/waves/long.wav 50:01:29.99 119:59:2.2
-
-# minutes and seconds, frames OK
-./wavsplit --frames 75 ~/waves/long.wav 50:01:74.99 119:59:2.2
-
-# minutes and seconds - illegal seconds
-./wavsplit ~/waves/long.wav 50:01.3 119:60.2
-
-# minutes and seconds OK
-./wavsplit ~/waves/long.wav  50:01.3 119:10.2 
-
-# hours, minutes, seconds - illegal minutes
-./wavsplit --Hours ~/waves/long.wav 0:60:01.3 1:59:10.2
-
-# hours, minutes, seconds - illegal seconds
-./wavsplit --Hours ~/waves/long.wav 0:50:01.3 1:59:60.2
-
-# hours, minutes, seconds - OK
-./wavsplit --Hours ~/waves/long.wav 0:50:01.3 1:59:10.2
-
-# seconds
-./wavsplit --seconds ~/waves/long.wav 3001.3 7150.2
-
-# Track times: minutes and seconds, frames - OK
-./wavsplit --frames --tracktimes ~/waves/long.wav 3:1:74 2:50:20
-
-# Track times: hours, minutes, seconds - OK
-./wavsplit --seconds --tracktimes ~/waves/long.wav 180.3 240.0
-
-# hours, minutes, seconds - illegal order of splits (not ascending) 
-./wavsplit --seconds  ~/waves/long.wav 240.0 180.3 500.01
diff --git a/wavren b/wavren
deleted file mode 100755
index dabdb6d..0000000
--- a/wavren
+++ /dev/null
@@ -1,29 +0,0 @@
-ELF84|$4 ("444$$$$$,8000  /lib/ld-linux.so.2GNU
	
-h:?x:5NP,-Ȅn؄ ,UZ'T_F' (libc.so.6strcpyfgetsrenamefprintfstdinscandiralphasortstrcmpsprintfstderrexitatoi_IO_stdin_used__libc_start_mainstrlen__gmon_start__GLIBC_2.0ii
LPT
 $(,04	8
-<@DHUlO5%%h%h% h%$h%(h %,h(%0h0%4h8p%8h@`%<hHP%@hP@%DhX0%Hh` 1^PTRhph@QVhUSP[æ@tЋ]ÐU=Xu),t,ҡ,uXÉUtthzÐUS$3)ăh }~ h`5Pcj}hPE0hP}DžE0vhPyh)hjPPDž;|#PPgÍPS)ÉPPPRrPh܊+5ThPPH(
-uPHƄ(hPODžPk9r*8 u_뺋PPhPrPPPPhP7 PPnuh5Psh]ÐUVS$-$19sƐ$C9r[^USP$-$Xu]6$KuUSRtЋuX[USR[:]WavRen - interactively renames all WAVs in a given directory
-Usage: dirent [NR-TO-BEGIN-WITH] [EXTENSION]
-.wav.%s.Please enter new filenames, empty filename to skip a file.
-[%s] Name? %s/%s%s/%02ld-%s%sCould not rename file.
-Success.
-@
ȉ(܂
-h؃ooo|0n~΄ބ.GCC: (GNU) 3.2.2 20030222 (Red Hat Linux 3.2.2-5)GCC: (GNU) 3.2.2 20030222 (Red Hat Linux 3.2.2-5)GCC: (GNU) 3.2.2 20030222 (Red Hat Linux 3.2.2-5)GCC: (GNU) 3.2.2 20030222 (Red Hat Linux 3.2.2-5)GCC: (GNU) 3.2.2 20030222 (Red Hat Linux 3.2.2-5)GCC: (GNU) 3.2.2 20030222 (Red Hat Linux 3.2.2-5)8$,$	ȉ@\#$	މU!_IO_stdin_used8\../sysdeps/i386/elf/start.S/usr/src/build/324954-i386/BUILD/glibc-2.3.2-200304020432/csuGNU AS 2.13.90.0.18o\\/<<#LSLfintN	b
-VLb
-{MfLO|IS#NZ##O#7:#_:!#"#2&

F

Q
%



h
	8

 @B|XAj#]k#e=l#m#nO#SSSd
jՅYd<?u[#va#xS#^zl#	{l#RHr}#Ki~#AN#O6# jS#$S#(S#,S#0S#4#8j$@S##S#US#S#&##@O# G=SCOUgxSSd
SSbSSSS+G#CS#+#:jL_,492#3j#~,5
-9/
-4:"r#$%a(H)* +7,S-G2:3\9::*s>ujS%M]g-SSSSeZ:6KS%l\S;	Euq#
-#aSa

-ad!6S6a}GR5_78S9:S:/usr/src/build/324954-i386/BUILD/glibc-2.3.2-200304020432/build-i386-linux/csu/crti.S/usr/src/build/324954-i386/BUILD/glibc-2.3.2-200304020432/csuGNU AS 2.13.90.0.18(/usr/src/build/324954-i386/BUILD/glibc-2.3.2-200304020432/build-i386-linux/csu/crtn.S/usr/src/build/324954-i386/BUILD/glibc-2.3.2-200304020432/csuGNU AS 2.13.90.0.18%%:;
:;I8
-I!I/$>$>:;	:;I
-
:;I:;I:;
(:;I'II&I'<!I4:;I?
-%%Q/
-../sysdeps/i386/elfstart.S8.01:"!VWYW
-
-../sysdeps/generic/bits../wcsmbs/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include../sysdeps/gnu../iconvinit.ctypes.hwchar.hstddef.h_G_config.hgconv.hi
-/usr/src/build/324954-i386/BUILD/glibc-2.3.2-200304020432/build-i386-linux/csucrti.Sȉ2,W	@",:\,Wdd,,-:i
-/usr/src/build/324954-i386/BUILD/glibc-2.3.2-200304020432/build-i386-linux/csucrtn.Sމ:U	|_G_int32_t__time_t__GCONV_INCOMPLETE_INPUT__daddr_t__int32_t__gconv_init_fct_G_iconv_t__rlim64_t__GCONV_ILLEGAL_DESCRIPTOR__gconv_infoshort unsigned intunsigned char__useconds_t__counter__fct__val__value__nsteps_G_int16_t__max_needed_from__gconv_btowc_fct__off_t__ssize_t__statepinit.c__fsfilcnt_t__steps__fsfilcnt64_t__blkcnt_t__blksize_t_G_fpos64_t__gconv_t__trans_end_fct__u_int/usr/src/build/324954-i386/BUILD/glibc-2.3.2-200304020432/csu__GCONV_ILLEGAL_INPUT__gconv_loaded_object__to_name__uint64_t__id_t__GCONV_EMPTY_INPUT__cd__ino_t__GCONV_NOCONV__invocation_counter__pid_t__u_short__count__quad_t__u_long__fsid_t__GCONV_FULL_OUTPUT__max_needed_to__timer_t__stateful__uint32_t__key_t__u_char__gconv_step__shlib_handle__min_needed_toshort int__dev_tlong long int__gconv_trans_data__outbuflong long unsigned int__uid_t__wchb__uint16_twint_t__u_quad_t__gconv_trans_end_fct__flags__outbufend__combined__gconv_trans_init_fct__init_fct__modname__trans_context_fctGNU C 3.2.2 20030222 (Red Hat Linux 3.2.2-5)__trans_fct__rlim_t__wch__intptr_t__suseconds_t__ino64_twchar_t__GCONV_IS_LAST__blkcnt64_t__fsblkcnt64_t__mode_t__qaddr_t__pos__gconv_end_fct_IO_stdin_used__internal_use__GCONV_NODB__clock_t__gconv_step_data__gconv_trans_query_fct__socklen_t__int64_t__GCONV_NOMEM__off64_t__btowc_fct_G_fpos_t__int8_t__GCONV_OK__fsblkcnt_t_G_uint32_t__nlink_t__swblk_t__GCONV_INTERNAL_ERROR__mbstate_t__gid_t__clockid_t__state__gconv_trans_context_fct__next__GCONV_IGNORE_ERRORS__end_fct__trans__uint8_t__gconv_fct__from_name__min_needed_from__gconv_trans_fct__data__caddr_t_G_uint16_t__loff_t__int16_t.symtab.strtab.shstrtab.interp.note.ABI-tag.hash.dynsym.dynstr.gnu.version.gnu.version_r.rel.dyn.rel.plt.init.text.fini.rodata.eh_frame.data.dynamic.ctors.dtors.jcr.got.bss.comment.debug_aranges.debug_pubnames.debug_info.debug_abbrev.debug_line.debug_frame.debug_str# 1((7 ?܂Go||$To c	l	؃hu@@pXX{88ȉ	
-   $$00DPPP2
x%%
-8| 0N#+)!T	\1(܂|؃	@
-X8ȉ
 $0P !dozoodo0d\ ,X'4 BNd0dddh:0x:
-$0(=p4M@
-SPe8l,}Ȅ$@0PW؄$$ ,!ȉ
'7GPNd\iTz$'$  (<command line>/usr/src/build/324954-i386/BUILD/glibc-2.3.2-200304020432/build-i386-linux/config.h<built-in>abi-note.S/usr/src/build/324954-i386/BUILD/glibc-2.3.2-200304020432/build-i386-linux/csu/abi-tag.hinit.c/usr/src/build/324954-i386/BUILD/glibc-2.3.2-200304020432/build-i386-linux/csu/crti.S/usr/src/build/324954-i386/BUILD/glibc-2.3.2-200304020432/build-i386-linux/csu/defs.hinitfini.ccall_gmon_startcrtstuff.c__CTOR_LIST____DTOR_LIST____EH_FRAME_BEGIN____JCR_LIST__p.0completed.1__do_global_dtors_auxframe_dummy__CTOR_END____DTOR_END____FRAME_END____JCR_END____do_global_ctors_aux/usr/src/build/324954-i386/BUILD/glibc-2.3.2-200304020432/build-i386-linux/csu/crtn.Swavren.crename@@GLIBC_2.0_DYNAMICstrcmp@@GLIBC_2.0_fp_hwfprintf@@GLIBC_2.0__fini_array_endalphasort@@GLIBC_2.0__dso_handle__libc_csu_fini_initstderr@@GLIBC_2.0_startfgets@@GLIBC_2.0strlen@@GLIBC_2.0scandir@@GLIBC_2.0__fini_array_start__libc_csu_init__bss_startmain__libc_start_main@@GLIBC_2.0__init_array_enddata_startprintf@@GLIBC_2.0_finiexit@@GLIBC_2.0atoi@@GLIBC_2.0_edata_GLOBAL_OFFSET_TABLE__endstdin@@GLIBC_2.0__init_array_start_IO_stdin_usedsprintf@@GLIBC_2.0__data_start_Jv_RegisterClasses__gmon_start__strcpy@@GLIBC_2.0
\ No newline at end of file
diff --git a/wavren.c b/wavren.c
index 15274c7..d6a932a 100644
--- a/wavren.c
+++ b/wavren.c
@@ -1,5 +1,5 @@
 #include <stdio.h>
-#include <sys/types.h>
+#include <stdint.h>
 #include <dirent.h>
 #include <string.h>
 #include <stdlib.h>
@@ -19,9 +19,9 @@ int main(int argc, char **argv) {
 	long i, nr;
 	int sdentref, j;
 
-	printf("WavRen - interactively renames all WAVs in a given directory\n");
+	puts("WavRen - interactively renames all WAVs in a given directory");
 	if (argc > 3) {
-		fprintf(stderr, "Usage: dirent [NR-TO-BEGIN-WITH] [EXTENSION]\n");
+		fputs("Usage: dirent [NR-TO-BEGIN-WITH] [EXTENSION]\n", stderr);
 		exit(1);
 	}
 	if (argc < 3)
@@ -34,7 +34,7 @@ int main(int argc, char **argv) {
 		nr = atoi(argv[1]);
 	strcpy(pathname, ".");
 	
-	printf("Please enter new filenames, empty filename to skip a file.\n");
+	puts("Please enter new filenames, empty filename to skip a file.");
 	
 	sdentref = scandir(pathname, &sdentlist, NULL, alphasort);
 	for (i=0; i<sdentref; i++) {
@@ -53,16 +53,17 @@ int main(int argc, char **argv) {
 					sprintf(oldfilep, "%s/%s", pathname, sdent->d_name);
 					sprintf(newfilep, "%s/%02ld-%s%s", pathname, nr++, newname, extension);
 					if (DEBUG) {
-						printf("%s\n%s\n", oldfilep, newfilep);
+						puts(oldfilep);
+						puts(newfilep);
 					}
 					if (rename(oldfilep, newfilep)==-1) {
-						fprintf(stderr, "Could not rename file.\n");
+						fputs("Could not rename file.\n", stderr);
 					}
 				}
 			} 
 		}	
 	}
-	printf("Success.\n");
+	puts("Success.");
   return 0;
 }
 
diff --git a/wavsplit b/wavsplit
deleted file mode 100755
index d7f1ca6..0000000
--- a/wavsplit
+++ /dev/null
@@ -1,85 +0,0 @@
-ELFp4L4 ("444111<2  /lib/ld-linux.so.2GNU"
! 	
-І:z|:qm 0Y@xP4_`?p,t|RЇ7F.| fD0@' P| 8`libm.so.6_Jv_RegisterClasses__gmon_start__libc.so.6strcpystdoutgetopt_longmemcpycreatmallocoptargfflushlseekwriteatoffprintfoptindreadstrtok__assert_failstrcmpsprintfstderr__errno_locationexitatoi_IO_stdin_used__libc_start_mainstrlenopenmkdirclosefree__fxstatGLIBC_2.0.ii
& ptx|	
-
!U<?5h%l%ph%th%xh%|h%h %h(%h0%h8p%h@`%hHP%hP@%hX0%h` %hh%hp%hx%h%h%h%h%h%h%h%hp%h`%hP1^PTRhhpQVh USP[:ttЋ]ÐU=u)tҡuÉU`tth`vÐUWVS\)ĉeE}U))ĉe(EEEEE=(uUhhhh h`hEPhEPuu E}uEE}h}h*}H}H}t>}fr}s}s}qtW}t&H(5(hhP	@eEE5(hh@	E5(hh_E5(hh|=tJ5Eău	5(hhyi5(hhYIE5(hh 2"eE@;E|eE}u!}u5(hh`E4h@h@h@h@h5h@¸@hPGt2h@¸@hPuh@ƀ@EE)H9E|U)UU)EU)UDDU)EU)E@@}}hEE0XEԋU)EXuEPhueEU)EXuJ[U)ЍEE0E\hEE0Eԃ}uqU)Ѝu:UEPhħueEU)EXu#U)EXu}EPḩSueE6U)EXusEPh	ueEU)EXu[MEPḩueEU)Ѝu^E\}urU)E@t2U)EHEĺRP,$d$AEt5(hhQ}U)UDt#U)UD Et5(hh@U)E8xU)E8;~5(hh}uKU)E8xU)E8;~5(hhJE>EE܃hh@u1f8u%h5eEjh@ = u"h5eE]~eEHuuuuuu ~eE5 XeEEe[^_Uh@hyh`jqhhkjHhũhhyjfhxh@hhXhqjsh۪Ah1hjth@hfjhhhhЫhh h`UhuEhuE}u}uhhhh}t}tuuh(}tuuh5i}t
-jFUhj_UE8u#uh5jUE}t}t}t}t}KtEEUExP5 ky%h5DžtEE؃E@PE}u*E@Ph@5DDžtYuuuuuu EEEuE@P~Džt
E@PuE}y%hi5DžtEEEEE;E}X}^uu5$Bu%h5WDžtlUE)uu5$u%h5	DžtUEUE)EE;E}%uuuuuu +EECE)‰ЉE}u	En=(t5E@PhUE5$L}uE@PDžtOE@9E6=(th֭5$uDžttUSEUMEUMЍЍѺE]EӺUЍ)ȉEЍЍEEӺEȺuEEPEPEPuuuh 5]Ujj5 [t%h@5DžhP5 hhjPh9t%h5'Dž,hhPu%h5DžhhP=u%h5Džj5h%=w%h+5FDžKf=tBh`5jPh5DžhhP=u%h5Džj5h=)Ѓj5 u+h5-Dž2=(tl
-Ph5hPh#o5h3Yh`IѺ9t"h5vDž~
-Ѻf=u9u29u"h5Dž
-DžUEEEE;ErsEU:ubEEEE8u9}tEMEUŠ:EEEEE뺃}tEEEEEUuh@hPWhP@$=$u&PhDžE$ff
-fffffEj,h5$@,t"h5UDž
-DžUS$EEEEEEEEE؃}t_}r}}U)ЍEDpɋU)ЍED][U)ЍEDpɋU)ЍEDU)ЍMERP,$d$D]U)ЍExɋU)ЍEDpU)ЍED]U)ЍExɋU)ЍEDpU)ЍEDU)ЍMERP,$d$D]}t"pEpptEUEUEUExt5(hhEUx|RP,$d$M}fE޴fEm]mE‰E=(t`}t.U)ЍE4E@Ph',U)ЍE4E@Ph9}ERP,$d$ɍd$$uU)ЍEDU)ЍMERP,$d$Dd$$U)ЍEthK" nERP,$d$ɍd$$uU)ЍEttU)ЍEthK E]UEE}uAuu5 E}y	E%}uEU)EE뷋EU)‰ЉEEUVS.-19sƐC9r[^USP-Xu]^KuUSuu[~j|]ÐUSRPPtЋuX[USR[:]quiethelpHourssecondsframestracktimesqhHsf:t1.2.1
-WAVSPLIT version %s (http://www.fomalhaut.de)
-Licensed under GPL by author Tobias Weihmann
-Hour patch by Sacha Bartok (sacha@myrealbox.com)
-Modified for frames, hours, seconds, decimal seconds by Alan Fitch
-Modified for individual track lengths (non-cumulative splits) by Derek Schuff
-
-INFOQuiet option selectedHours:mins:sec format selectedSeconds only option selectedFrames options selectedERRORFrames argument must be 12, 24, 25, 30, or 75Missing argument to frames option 12, 24, 25, 30, or 75 fpsNon-cumulative track lengths selectedYou selected time in just seconds, and in hours - only one is allowed%s .wav.WAV:Frame CounterMinutesSecondsWhen using frames, value must be >= 0.0  and < Frames Per SecondSeconds must be >= 0.0  and < 60.0Seconds must be >= 0  and < 60When using Hours, minutes must be >= 0  and < 60Could not create output directory.
-Could not open file.
-N@Usage: wavsplit [options] wavfile split split split...
-
-Options:
-	-%c	--%s		Quiet mode (no messages)
-	-%c	--%s		Use Hours
-				wavsplit [options] wavfile hr:min:sec [hr:min:sec]...
-	-%c	--%s FPS	use Frames
-				FPS (frames per second) must be either 12, 24, 25, 30, or 75
-				wavsplit [options] wavfile min:sec:fr [min:sec:fr]...
-	-%c	--%s	Use Seconds
-				wavsplit [options] wavfile sec [sec]...
-	-%c	--%s	Use individual track times (instead of cumulative split times)
-	-%c	--%s		This info
-
-You can combine both Hours and frames options
-
-Examples:
-			wavsplit --frames 30 file.wav 32:21:15 45:10:0
-			wavsplit --Hours file.wav 1:32:21:59.2 1:45:10:0.3
-			wavsplit --seconds file.wav 300.1 500.2
-
-Reportwavsplit.cIsError || IsInfo%s: %s
-ERROR: wavsplit: Argument error, expecting %s
-Could not read input file state.
-Could not allocate %ld bytes of memory.
-Error while reading.
-Error while writing.
-[%02d]	until the end                %12ld   100.00%%
-Success.
-
-
[%d:%02d]	%3d%%	L=%3d%%	R=%3d%%	AVG=%3d%%   Could not locate beginning of input file
-RIFFBad format: Cannot find RIFF file marker
-WAVEBad format: Cannot find WAVE file marker
-fmt Bad format: Cannot find 'fmt' file marker
-Bad format: Bad fmt size
-Only supports PCM wave format
-tag = %d, PCM = %x
-dataBad format: unable to find 'data' file markerError seeking to WAV data at %lu
-Channels: %d
-Samplerate: %ldHz
-Samplebits: %d
-Databytes: %ld
-
-Split         Hours  Mins   Seconds         Bytes         %%
-Bad file format
-%s/%02d.wavCould not create output file '%s'.
-Could not write header.
-Split times must be in ascending order[%02d]	length%5d [%02d]	until %5d %5d  %8.3f  %12ld    %3.2f%%
-N@ @B\RIFFWAVEfmt data`qfhkHqsyft.
 (
-0d؅(oooLֆ&6FVfvƇև&6FVfGCC: (GNU) 3.2.2 20030222 (Red Hat Linux 3.2.2-5)GCC: (GNU) 3.2.2 20030222 (Red Hat Linux 3.2.2-5)GCC: (GNU) 3.2.2 20030222 (Red Hat Linux 3.2.2-5)GCC: (GNU) 3.2.2 20030222 (Red Hat Linux 3.2.2-5)GCC: (GNU) 3.2.2 20030222 (Red Hat Linux 3.2.2-5)GCC: (GNU) 3.2.2 20030222 (Red Hat Linux 3.2.2-5)p$,$	 #$	6!_IO_stdin_usedp../sysdeps/i386/elf/start.S/usr/src/build/324954-i386/BUILD/glibc-2.3.2-200304020432/csuGNU AS 2.13.90.0.18o/<<#LSLfintN	b
-VLb
-{MfLO|IS#NZ##O#7:#_:!#"#2&

F

Q
%



h
	8

 @B|XAj#]k#e=l#m#nO#SSSd
jՅYd<?u[#va#xS#^zl#	{l#RHr}#Ki~#AN#O6# jS#$S#(S#,S#0S#4#8j$@S##S#US#S#&##@O# G=SCOUgxSSd
SSbSSSS+G#CS#+#:jL_,492#3j#~,5
-9/
-4:"r#$%a(H)* +7,S-G2:3\9::*s>ujS%M]g-SSSSeZ:6KS%l\S;	Euq#
-#aSa

-ad!6S6a}GR5_78S9:DS:/usr/src/build/324954-i386/BUILD/glibc-2.3.2-200304020432/build-i386-linux/csu/crti.S/usr/src/build/324954-i386/BUILD/glibc-2.3.2-200304020432/csuGNU AS 2.13.90.0.18(/usr/src/build/324954-i386/BUILD/glibc-2.3.2-200304020432/build-i386-linux/csu/crtn.S/usr/src/build/324954-i386/BUILD/glibc-2.3.2-200304020432/csuGNU AS 2.13.90.0.18%%:;
:;I8
-I!I/$>$>:;	:;I
-
:;I:;I:;
(:;I'II&I'<!I4:;I?
-%%Q/
-../sysdeps/i386/elfstart.Sp.01:"!VWYW
-
-../sysdeps/generic/bits../wcsmbs/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include../sysdeps/gnu../iconvinit.ctypes.hwchar.hstddef.h_G_config.hgconv.hi
-/usr/src/build/324954-i386/BUILD/glibc-2.3.2-200304020432/build-i386-linux/csucrti.S 2,W	",:,Wdd,,-:i
-/usr/src/build/324954-i386/BUILD/glibc-2.3.2-200304020432/build-i386-linux/csucrtn.S6:	|_G_int32_t__time_t__GCONV_INCOMPLETE_INPUT__daddr_t__int32_t__gconv_init_fct_G_iconv_t__rlim64_t__GCONV_ILLEGAL_DESCRIPTOR__gconv_infoshort unsigned intunsigned char__useconds_t__counter__fct__val__value__nsteps_G_int16_t__max_needed_from__gconv_btowc_fct__off_t__ssize_t__statepinit.c__fsfilcnt_t__steps__fsfilcnt64_t__blkcnt_t__blksize_t_G_fpos64_t__gconv_t__trans_end_fct__u_int/usr/src/build/324954-i386/BUILD/glibc-2.3.2-200304020432/csu__GCONV_ILLEGAL_INPUT__gconv_loaded_object__to_name__uint64_t__id_t__GCONV_EMPTY_INPUT__cd__ino_t__GCONV_NOCONV__invocation_counter__pid_t__u_short__count__quad_t__u_long__fsid_t__GCONV_FULL_OUTPUT__max_needed_to__timer_t__stateful__uint32_t__key_t__u_char__gconv_step__shlib_handle__min_needed_toshort int__dev_tlong long int__gconv_trans_data__outbuflong long unsigned int__uid_t__wchb__uint16_twint_t__u_quad_t__gconv_trans_end_fct__flags__outbufend__combined__gconv_trans_init_fct__init_fct__modname__trans_context_fctGNU C 3.2.2 20030222 (Red Hat Linux 3.2.2-5)__trans_fct__rlim_t__wch__intptr_t__suseconds_t__ino64_twchar_t__GCONV_IS_LAST__blkcnt64_t__fsblkcnt64_t__mode_t__qaddr_t__pos__gconv_end_fct_IO_stdin_used__internal_use__GCONV_NODB__clock_t__gconv_step_data__gconv_trans_query_fct__socklen_t__int64_t__GCONV_NOMEM__off64_t__btowc_fct_G_fpos_t__int8_t__GCONV_OK__fsblkcnt_t_G_uint32_t__nlink_t__swblk_t__GCONV_INTERNAL_ERROR__mbstate_t__gid_t__clockid_t__state__gconv_trans_context_fct__next__GCONV_IGNORE_ERRORS__end_fct__trans__uint8_t__gconv_fct__from_name__min_needed_from__gconv_trans_fct__data__caddr_t_G_uint16_t__loff_t__int16_t.symtab.strtab.shstrtab.interp.note.ABI-tag.hash.dynsym.dynstr.gnu.version.gnu.version_r.rel.dyn.rel.plt.init.text.fini.rodata.eh_frame.data.dynamic.ctors.dtors.jcr.got.bss.comment.debug_aranges.debug_pubnames.debug_info.debug_abbrev.debug_line.debug_frame.debug_str# 1((7 ?0GoLLDTo c	(l	؅up{pp  $@@$D
 11 2PP3XX3``3dd3x3` 325x5%5
-M@8AD 0 DJ+\Q 
-!k	|[(L؅	
-p 
@PX`d !dozoodo0dPX`T'\4B`Nd0ddd,p(B9@@O J#D)ܞ-3ǝ=	gE$IS^`/jnpxІ:|:q@ 08E4U@xfP4?
-`ԣ%"pp	p0,8 	=Zk v, 
|Ї7.|d %@*=ԣ%EWDf0x@' P| `<command line>/usr/src/build/324954-i386/BUILD/glibc-2.3.2-200304020432/build-i386-linux/config.h<built-in>abi-note.S/usr/src/build/324954-i386/BUILD/glibc-2.3.2-200304020432/build-i386-linux/csu/abi-tag.hinit.c/usr/src/build/324954-i386/BUILD/glibc-2.3.2-200304020432/build-i386-linux/csu/crti.S/usr/src/build/324954-i386/BUILD/glibc-2.3.2-200304020432/build-i386-linux/csu/defs.hinitfini.ccall_gmon_startcrtstuff.c__CTOR_LIST____DTOR_LIST____EH_FRAME_BEGIN____JCR_LIST__p.0completed.1__do_global_dtors_auxframe_dummy__CTOR_END____DTOR_END____FRAME_END____JCR_END____do_global_ctors_aux/usr/src/build/324954-i386/BUILD/glibc-2.3.2-200304020432/build-i386-linux/csu/crtn.Swavsplit.cwaveheaderlong_options.0verboseReportusagecheckfpsifilebasenameTokenOKifdreadheadersplitcalcsplitcreateoutstdreadofddatabyteswaveformatbfindchunkptrCumulativeTime.1LastSplitTimeFloat.2mkdir@@GLIBC_2.0_DYNAMICwrite@@GLIBC_2.0strcmp@@GLIBC_2.0close@@GLIBC_2.0_fp_hwfprintf@@GLIBC_2.0fflush@@GLIBC_2.0__fini_array_end__assert_fail@@GLIBC_2.0__dso_handle__libc_csu_finicreat@@GLIBC_2.0__errno_location@@GLIBC_2.0display_initmalloc@@GLIBC_2.0fstatstdout@@GLIBC_2.0stderr@@GLIBC_2.0_start__fxstat@@GLIBC_2.0strlen@@GLIBC_2.0atof@@GLIBC_2.0__fini_array_start__libc_csu_init__bss_startmain__libc_start_main@@GLIBC_2.0__init_array_enddata_startprintf@@GLIBC_2.0_finilseek@@GLIBC_2.0memcpy@@GLIBC_2.0getopt_long@@GLIBC_2.0open@@GLIBC_2.0exit@@GLIBC_2.0atoi@@GLIBC_2.0_edata_GLOBAL_OFFSET_TABLE_free@@GLIBC_2.0_end__init_array_start__fstatoptarg@@GLIBC_2.0_IO_stdin_usedstrtok@@GLIBC_2.0sprintf@@GLIBC_2.0__data_start_Jv_RegisterClassesoptind@@GLIBC_2.0read@@GLIBC_2.0__gmon_start__strcpy@@GLIBC_2.0
\ No newline at end of file
diff --git a/wavsplit.c b/wavsplit.c
index 881d79e..c422a49 100644
--- a/wavsplit.c
+++ b/wavsplit.c
@@ -40,13 +40,11 @@ OPF_TRACK };
   UseTrackLens = DEFAULT_TRACK;
 
   if (verbose == 1) {
-    printf ("\nWAVSPLIT version %s (http://www.fomalhaut.de)\n", VERSION);
-    printf ("Licensed under GPL by author Tobias Weihmann\n");
-    printf ("Hour patch by Sacha Bartok (sacha@myrealbox.com)\n");
-    printf
-      ("Modified for frames, hours, seconds, decimal seconds by Alan Fitch\n");
-    printf
-      ("Modified for individual track lengths (non-cumulative splits) by Derek Schuff\n\n");
+    puts ("\nWAVSPLIT version " VERSION " (http://www.fomalhaut.de)\n"
+          "Licensed under GPL by author Tobias Weihmann\n"
+          "Hour patch by Sacha Bartok (sacha@myrealbox.com)\n"
+          "Modified for frames, hours, seconds, decimal seconds by Alan Fitch\n"
+          "Modified for individual track lengths (non-cumulative splits) by Derek Schuff\n");
   }
   while ((optch = getopt_long (argc, argv, cmdopts, long_options,
                                &option_index)) != -1) {
@@ -104,7 +102,8 @@ OPF_TRACK };
 
   strcpy (ifile, argv[optind]);
   strcpy (basename, ifile);
-  printf ("%s ", basename);
+  puts (basename);
+  putchar (' ');
   if (strcmp (basename + strlen (basename) - 4, ".wav") == 0 ||
       strcmp (basename + strlen (basename) - 4, ".WAV") == 0)
     basename[strlen (basename) - 4] = '\0';
@@ -187,17 +186,17 @@ OPF_TRACK };
 
   if (mkdir (basename, 0777) == -1) {
     if (errno == EEXIST) {
-      //if (verbose) fprintf(stderr,"Directory already exists, not creating.\n");
+      //if (verbose) fputs("Directory already exists, not creating.\n", stderr);
     }
     else {
-      fprintf (stderr, "Could not create output directory.\n");
+      fputs ("Could not create output directory.\n", stderr);
       return 1;
     }
   }
 
   ifd = open (ifile, O_RDONLY);
   if (ifd == -1) {
-    fprintf (stderr, "Could not open file.\n");
+    fputs ("Could not open file.\n", stderr);
     return 1;
   }
   if (readheader () > 0)
@@ -211,27 +210,26 @@ OPF_TRACK };
 
 void usage ()
 {
-  printf ("Usage: wavsplit [options] wavfile split split split...\n\n");
-  printf ("Options:\n");
+  puts ("Usage: wavsplit [options] wavfile split split split...\n"
+        "Options:");
   printf ("\t-%c\t--%s\t\tQuiet mode (no messages)\n", OPF_QUIET,
           OPF_QUIET_LONG);
   printf ("\t-%c\t--%s\t\tUse Hours\n", OPF_HOURS, OPF_HOURS_LONG);
-  printf ("\t\t\t\twavsplit [options] wavfile hr:min:sec [hr:min:sec]...\n");
+  puts ("\t\t\t\twavsplit [options] wavfile hr:min:sec [hr:min:sec]...");
   printf ("\t-%c\t--%s FPS\tuse Frames\n", OPF_FRAMES, OPF_FRAMES_LONG);
-  printf
-    ("\t\t\t\tFPS (frames per second) must be either 12, 24, 25, 30, or 75\n");
-  printf ("\t\t\t\twavsplit [options] wavfile min:sec:fr [min:sec:fr]...\n");
+  puts ("\t\t\t\tFPS (frames per second) must be either 12, 24, 25, 30, or 75\n"
+        "\t\t\t\twavsplit [options] wavfile min:sec:fr [min:sec:fr]...");
   printf ("\t-%c\t--%s\tUse Seconds\n", OPF_SECONDS, OPF_SECONDS_LONG);
-  printf ("\t\t\t\twavsplit [options] wavfile sec [sec]...\n");
+  puts ("\t\t\t\twavsplit [options] wavfile sec [sec]...");
   printf
     ("\t-%c\t--%s\tUse individual track times (instead of cumulative split times)\n",
      OPF_TRACK, OPF_TRACK_LONG);
   printf ("\t-%c\t--%s\t\tThis info\n", OPF_HELP, OPF_HELP_LONG);
-  printf ("\nYou can combine both Hours and frames options\n");
-  printf ("\nExamples:\n");
-  printf ("\t\t\twavsplit --frames 30 file.wav 32:21:15 45:10:0\n");
-  printf ("\t\t\twavsplit --Hours file.wav 1:32:21:59.2 1:45:10:0.3\n");
-  printf ("\t\t\twavsplit --seconds file.wav 300.1 500.2\n\n");
+  puts ("\nYou can combine both Hours and frames options\n"
+        "\nExamples:\n"
+        "\t\t\twavsplit --frames 30 file.wav 32:21:15 45:10:0\n"
+        "\t\t\twavsplit --Hours file.wav 1:32:21:59.2 1:45:10:0.3\n"
+        "\t\t\twavsplit --seconds file.wav 300.1 500.2\n");
 }
 
 void Report (const char *Message, const char *Severity, int Verbose)
@@ -276,7 +274,7 @@ int split (unsigned int UseHours, unsigned int UseFrames,
 
   /* Buffer reservieren */
   if (fstat (ifd, &stat_buf) < 0) {
-    fprintf (stderr, "Could not read input file state.\n");
+    fputs ("Could not read input file state.\n", stderr);
     return 1;
   }
   in_blk_size = stat_buf.st_blksize;
@@ -297,7 +295,7 @@ int split (unsigned int UseHours, unsigned int UseFrames,
   do {
     n_read = (long) stdread (buf, in_blk_size + 1);
     if (n_read < 0) {
-      fprintf (stderr, "Error while reading.\n");
+      fputs ("Error while reading.\n", stderr);
       return 1;
     }
     bp_out = buf;
@@ -306,7 +304,7 @@ int split (unsigned int UseHours, unsigned int UseFrames,
       if (to_read < to_write) {
         if (to_read) {          /* do not write 0 bytes! */
           if (write (ofd, bp_out, to_read) == -1) {
-            fprintf (stderr, "Error while writing.\n");
+            fputs ("Error while writing.\n", stderr);
             return 1;
           }
           to_write -= to_read;
@@ -315,7 +313,7 @@ int split (unsigned int UseHours, unsigned int UseFrames,
       }
       else {
         if (write (ofd, bp_out, to_write) == -1) {
-          fprintf (stderr, "Error while writing.\n");
+          fputs ("Error while writing.\n", stderr);
           return 1;
         }
         bp_out += to_write;
@@ -336,7 +334,7 @@ int split (unsigned int UseHours, unsigned int UseFrames,
           else {
             if (verbose)
               printf
-                ("[%02d]\tuntil the end                %12ld   100.00%%\n",
+                ("[%02d]\tuntil the end                %12u   100.00%%\n",
                  fnr + 1, databytes);
           }
         }
@@ -352,7 +350,7 @@ int split (unsigned int UseHours, unsigned int UseFrames,
   while (n_read == in_blk_size + 1);
 
   if (verbose)
-    printf ("Success.\n\n");
+    puts ("Success.\n");
   close (ofd);
 
   free (buf);
@@ -374,25 +372,25 @@ void display (unsigned char avgleft, unsigned char avgright,
 int readheader ()
 {
   char ibuffer[BUFFERSIZE];
-  u_long offset;
+  unsigned long offset;
 
   if (lseek (ifd, 0L, SEEK_SET)) {
-    fprintf (stderr, "Could not locate beginning of input file\n");
+    fputs ("Could not locate beginning of input file\n", stderr);
     return 1;
   }
 
   read (ifd, ibuffer, BUFFERSIZE);
   if (findchunk (ibuffer, "RIFF", BUFFERSIZE) != ibuffer) {
-    fprintf (stderr, "Bad format: Cannot find RIFF file marker\n");
+    fputs ("Bad format: Cannot find RIFF file marker\n", stderr);
     return 1;
   }
   if (!findchunk (ibuffer, "WAVE", BUFFERSIZE)) {
-    fprintf (stderr, "Bad format: Cannot find WAVE file marker\n");
+    fputs ("Bad format: Cannot find WAVE file marker\n", stderr);
     return 1;
   }
   ptr = findchunk (ibuffer, "fmt ", BUFFERSIZE);
   if (!ptr) {
-    fprintf (stderr, "Bad format: Cannot find 'fmt' file marker\n");
+    fputs ("Bad format: Cannot find 'fmt' file marker\n", stderr);
     return 1;
   }
 
@@ -403,52 +401,57 @@ int readheader ()
   ptr += 4;                     /* we move past fmt_ */
   memcpy (&waveformat, ptr, sizeof (WAVEFORMAT));
 
-  if (waveformat.dwSize < (sizeof (WAVEFORMAT) - sizeof (u_long))) {
-    fprintf (stderr, "Bad format: Bad fmt size\n");
+  if (waveformat.dwSize < (sizeof (WAVEFORMAT) - sizeof (uint32_t))) {
+    fputs ("Bad format: Bad fmt size\n", stderr);
     return 1;
   }
 
   if (waveformat.wFormatTag != PCM_WAVE_FORMAT) {
-    fprintf (stderr, "Only supports PCM wave format\n");
-    fprintf (stderr, "tag = %d, PCM = %x\n", waveformat.wFormatTag,
-             PCM_WAVE_FORMAT);
+    fprintf (stderr,
+             "Only supports PCM wave format\n"
+             "tag = %u, PCM = %x\n",
+             waveformat.wFormatTag, PCM_WAVE_FORMAT);
     return 1;
   }
 
   ptr = findchunk (ibuffer, "data", BUFFERSIZE);
 
   if (!ptr) {
-    fprintf (stderr, "Bad format: unable to find 'data' file marker");
+    fputs ("Bad format: unable to find 'data' file marker", stderr);
     return 1;
   }
 
   ptr += 4;                     /* we move past data */
-  memcpy (&databytes, ptr, sizeof (u_long));
+  memcpy (&databytes, ptr, sizeof (uint32_t));
 
-  offset = (u_long) ptr + 4 - (u_long) ibuffer;
+  offset = (unsigned long) ptr + 4 - (unsigned long) ibuffer;
   if (lseek (ifd, offset, SEEK_SET) == -1) {
     fprintf (stderr, "Error seeking to WAV data at %lu\n", offset);
     return 1;
   }
 
   if (verbose) {
-    printf ("Channels: %d\n", waveformat.wChannels);
-    printf ("Samplerate: %ldHz\n", waveformat.dwSamplesPerSec);
-    printf ("Samplebits: %d\n", waveformat.wBitsPerSample);
-    printf ("Databytes: %ld\n\n", databytes);
-    printf ("Split         Hours  Mins   Seconds         Bytes         %%\n");
+    printf ("Channels: %u\n"
+            "Samplerate: %uHz\n"
+            "Samplebits: %u\n"
+            "Databytes: %u\n\n",
+            waveformat.wChannels,
+            waveformat.dwSamplesPerSec,
+            waveformat.wBitsPerSample,
+            databytes);
+    puts ("Split         Hours  Mins   Seconds         Bytes         %");
     //printf("Blocks: %ld\n",databytes/waveformat.wBlockAlign);
   }
 
   if (waveformat.dwSamplesPerSec != waveformat.dwAvgBytesPerSec /
       waveformat.wBlockAlign) {
-    fprintf (stderr, "Bad file format\n");
+    fputs ("Bad file format\n", stderr);
     return 1;
   }
 
   if (waveformat.dwSamplesPerSec != waveformat.dwAvgBytesPerSec /
       waveformat.wChannels / ((waveformat.wBitsPerSample == 16) ? 2 : 1)) {
-    fprintf (stderr, "Bad file format\n");
+    fputs ("Bad file format\n", stderr);
     return 1;
   }
 
@@ -477,7 +480,7 @@ int createout (int num, long datasize)
 {
   char ofile[MAX_PATH + 1];
   sprintf (ofile, "%s/%02d.wav", basename, num);
-  ofd = creat (ofile, S_IRWXU);
+  ofd = creat (ofile, 0666);
   if (ofd == -1) {
     printf ("Could not create output file '%s'.\n", ofile);
     return 1;
@@ -494,7 +497,7 @@ int createout (int num, long datasize)
   _ConvertHeaderFromNative (&waveheader);
 #endif
   if (write (ofd, &waveheader, sizeof (WAVE_HEADER)) != sizeof (WAVE_HEADER)) {
-    fprintf (stderr, "Could not write header.\n");
+    fputs ("Could not write header.\n", stderr);
     return 1;
   }
 #ifdef __powerpc__
@@ -573,24 +576,15 @@ long calcsplit (unsigned int UseHours, unsigned int UseFrames,
   pos = pos * waveformat.wBlockAlign;
 
   if (verbose) {
-    if (UseTrackLens) {
-      printf ("[%02d]\tlength%5d ", splitnr + 1, split[splitnr].hr);
-    }
-    else {
-      printf ("[%02d]\tuntil %5d ", splitnr + 1, split[splitnr].hr);
-    }
+    printf ("[%02d]\t%s%5d ", splitnr + 1, UseTrackLens ? "length" : "until ", split[splitnr].hr);
   }
-  if (UseFrames)
-    printf ("%5d  %8.3f  %12ld    %3.2f%%\n",
-            split[splitnr].min,
-            (double) split[splitnr].seki +
-            ((double) split[splitnr].frames / (double) fps), pos,
-            (float) pos / (float) databytes * 100);
-
-  else
-    printf ("%5d  %8.3f  %12ld    %3.2f%%\n",
-            split[splitnr].min,
-            split[splitnr].sek, pos, (float) pos / (float) databytes * 100);
+  printf ("%5d  %8.3f  %12ld    %3.2f%%\n",
+          split[splitnr].min,
+          UseFrames
+          ? (double) split[splitnr].seki + (double) split[splitnr].frames / (double) fps
+          : split[splitnr].sek,
+          pos,
+          (float) pos / (float) databytes * 100);
 
   return pos;
 }
diff --git a/wavsplit.h b/wavsplit.h
index 71ac99d..036570d 100644
--- a/wavsplit.h
+++ b/wavsplit.h
@@ -4,7 +4,7 @@
 #include <stdio.h>
 
 #include <sys/stat.h>
-#include <sys/types.h>
+#include <stdint.h>
 #include <fcntl.h>
 #include <unistd.h>
 
@@ -46,29 +46,29 @@ typedef enum {
 } TIMEFORMAT;
 
 typedef struct {
-  u_long dwSize;
-  u_short wFormatTag;
-  u_short wChannels;
-  u_long dwSamplesPerSec;
-  u_long dwAvgBytesPerSec;
-  u_short wBlockAlign;
-  u_short wBitsPerSample;
+  uint32_t dwSize;
+  uint16_t wFormatTag;
+  uint16_t wChannels;
+  uint32_t dwSamplesPerSec;
+  uint32_t dwAvgBytesPerSec;
+  uint16_t wBlockAlign;
+  uint16_t wBitsPerSample;
 } WAVEFORMAT;
 
 typedef struct {
   char RiffID[4];
-  u_long RiffSize;
+  uint32_t RiffSize;
   char WaveID[4];
   char FmtID[4];
-  u_long FmtSize;
-  u_short wFormatTag;
-  u_short nChannels;
-  u_long nSamplesPerSec;
-  u_long nAvgBytesPerSec;
-  u_short nBlockAlign;
-  u_short wBitsPerSample;
+  uint32_t FmtSize;
+  uint16_t wFormatTag;
+  uint16_t nChannels;
+  uint32_t nSamplesPerSec;
+  uint32_t nAvgBytesPerSec;
+  uint16_t nBlockAlign;
+  uint16_t wBitsPerSample;
   char DataID[4];
-  u_long nDataBytes;
+  uint32_t nDataBytes;
 } WAVE_HEADER;
 
 typedef struct {
@@ -137,7 +137,7 @@ static _ConvertHeaderToNative (WAVE_HEADER * hdr);
 
 static char *ptr;
 static WAVEFORMAT waveformat;
-static u_long databytes, b;
+static uint32_t databytes, b;
 static int ifd, ofd;
 static int verbose;
 static char basename[MAX_PATH + 1], ifile[MAX_PATH + 1];
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009