update, i ahev got the code working
however my PC internal speaker has decided to join in the fun!!! and beeps each time it reads a value!? any ideas?
Code:
#include <stdio.h>
int main()
{
FILE *file_ptr;
unsigned char data;
int i=0;
int a;
file_ptr = fopen("C:\\Documents and Settings\\Gareth Devine\\Desktop\\alanis_morissette_clip.mp3","rb");
if (file_ptr !=NULL)
{
printf("settings file found\n");
for (i=0;!feof(file_ptr);i++)
{
printf("%d \n",i);
fread(&data, 1, 1, file_ptr);
printf("%c \n", data);
//would have funtion here passing the 8 bits to arm assembler code, hence the necessatity for 8 btis only!
}
scanf("%d",a);
fclose(file_ptr);
}
else
printf("file not found\n");
return 0;
}
Cheers all