Dear TJF,
Sorry to bug you with a silly question, I thought being a binary it must
have some specific encoding rel. to library hence I asked it. I didnt knew
it was lack of knowledge. I am sorry...!!
I Have figured out the way to read binary (code pasted bellow for others;)
but I have a doubt in it that I have lot of Zeros & negative readings as
well
Is it because of my decoding error or is it the samples themselves missing.
Thanks a ton..!!
#include<stdio.h>
int main()
{
FILE *fp = NULL;
short result[100];
int i;
fp=fopen("output.0", "w+");
rewind(fp);
if(fp != NULL)
{
fread(result, sizeof(short), 100 /*# of samples*/, fp);
}
else
return 1;
printf("Result\n");
for (i = 0; i < 100; i++)
printf("%d = %d\n", i, (int)result[i]);
fclose(fp);
return 0;
}
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.