Subject: [stella] wavconv.c From: Eckhard_Stolberg@xxxxxxxxxxxxxxxxxxxxx (Eckhard Stolberg) Date: Thu, 27 Feb 1997 16:16:16 +0100 |
#include <stdio.h> main() { FILE *in, *out; int oc[16] = {'0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f'}; int c, counter, i; in=fopen("vcsvoice.wav","rb"); out=fopen("vcsvoice.a65","w"); fseek(in, 44, SEEK_SET); fprintf(out, "\nNoisedata:"); counter=12; while(!feof(in)) { counter++; if (counter==13){ counter=0; fprintf(out, "\n DB $"); } else fprintf(out, ",$"); c=fgetc(in); fputc(oc[(c&0xf0)>>4], out); c=fgetc(in); c=fgetc(in); fputc(oc[(c&0xf0)>>4], out); c=fgetc(in); } fprintf(out, "\n"); fclose(in); fclose(out); } -- To unsubscribe, send the word UNSUBSCRIBE in the body of a message to stella-request@xxxxxxxxxxx
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[stella] say.uue, Eckhard Stolberg | Thread | [stella] say.a65, Eckhard Stolberg |
[stella] say.uue, Eckhard Stolberg | Date | [stella] say.a65, Eckhard Stolberg |
Month |