#include #include #include #define BUFSIZE 4 unsigned char buf[BUFSIZE]; unsigned char bufpos=0; void putbuf(unsigned char c) { memmove(buf,buf+1,BUFSIZE-1); buf[BUFSIZE-1]=c; } #define SAMPLERATE 16000L // samples per second int main() { unsigned long t=0; unsigned char c,o; unsigned int t1=0,seconds=0; FILE*f; f=fopen("geiger8u.raw","r"); while(!feof(f)){ putbuf(fgetc(f)); t++; if((buf[0]>250) && (buf[1]