git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3fd3c09
)
* removed printf's
author
kramm
<kramm>
Sun, 19 May 2002 18:12:54 +0000
(18:12 +0000)
committer
kramm
<kramm>
Sun, 19 May 2002 18:12:54 +0000
(18:12 +0000)
* #include <string.h>
src/wav.c
patch
|
blob
|
history
diff --git
a/src/wav.c
b/src/wav.c
index
e12e739
..
f151f6f
100644
(file)
--- a/
src/wav.c
+++ b/
src/wav.c
@@
-9,6
+9,7
@@
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdio.h>
+#include <string.h>
#include "wav.h"
struct WAVBlock {
#include "wav.h"
struct WAVBlock {
@@
-25,10
+26,10
@@
int getWAVBlock(FILE*fi, struct WAVBlock*block)
if(fread(b,1,4,fi)<4)
return 0;
block->size = b[0]|b[1]<<8|b[2]<<16|b[3]<<24;
if(fread(b,1,4,fi)<4)
return 0;
block->size = b[0]|b[1]<<8|b[2]<<16|b[3]<<24;
- printf("Chunk: [%c%c%c%c] (%d bytes)\n",
+ /*printf("Chunk: [%c%c%c%c] (%d bytes)\n",
block->id[0],block->id[1],
block->id[2],block->id[3],
block->id[0],block->id[1],
block->id[2],block->id[3],
- block->size);
+ block->size);*/
return 1;
}
return 1;
}
@@
-45,7
+46,7
@@
int readWAV(char* filename, struct WAV*wav)
filesize = ftell(fi);
fseek(fi, 0, SEEK_SET);
filesize = ftell(fi);
fseek(fi, 0, SEEK_SET);
- printf("Filesize: %d\n", filesize);
+ //printf("Filesize: %d\n", filesize);
if(!getWAVBlock (fi, &block))
return 0;
if(!getWAVBlock (fi, &block))
return 0;