X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fwav.c;h=31f24ca964ed0f150a8d7f305401fcd01c4c43ae;hb=2b25c0cafdddc108712f89d1a4e4ade858fbe854;hp=9afd6b174e086b0e9321983794c40fc7884e9873;hpb=ce24fdb3c6bf45807363dadfd1975c12ea5449b6;p=swftools.git diff --git a/lib/wav.c b/lib/wav.c index 9afd6b1..31f24ca 100644 --- a/lib/wav.c +++ b/lib/wav.c @@ -45,7 +45,7 @@ int getWAVBlock(FILE*fi, struct WAVBlock*block) return 1; } -int wav_read(char* filename, struct WAV*wav) +int wav_read(struct WAV*wav, char* filename) { FILE*fi = fopen(filename, "rb"); unsigned char b[16]; @@ -113,7 +113,7 @@ int wav_read(char* filename, struct WAV*wav) return 1; } -int wav_write(char*filename, struct WAV*wav) +int wav_write(struct WAV*wav, char*filename) { FILE*fi = fopen(filename, "wb"); char*b="RIFFWAVEfmt \x10\0\0\0data";