master
Hannes 14 years ago
parent 9005a1d94a
commit efdee57086

@ -9,14 +9,18 @@
main() main()
{ {
/*
* old_headersize, f und o vorher setzen*/
std::vector<unsigned char> data; std::vector<unsigned char> data;
FILE* f = fopen("outputfileulaw.wav", "rb"); FILE* f = fopen("outputfileulaw.wav", "rb");
rewind(f); rewind(f);
//int old_header_size = 0;
while(!feof(f)) while(!feof(f))
{ {
unsigned char s; unsigned char s;
fread(&s, sizeof s, 1, f); fread(&s, sizeof s, 1, f);
data.push_back(s); data.push_back(s);
int* last_word = (int*)&data[data.size()-4];
} }
FILE* o = fopen("outputfileulaw.raw", "wb"); FILE* o = fopen("outputfileulaw.raw", "wb");
int headersize = 4; int headersize = 4;

Loading…
Cancel
Save