Now when i try getting this data into exponent form it makes every value exactly the same.. what are my options here.. i suppose i have to write it in as a long int.. but that defeats what we were...
Type: Posts; User: rambo5330
Now when i try getting this data into exponent form it makes every value exactly the same.. what are my options here.. i suppose i have to write it in as a long int.. but that defeats what we were...
nm i just solved that part ... fread(&clip_info[k], 10000, 1, file_in);
had to remove [k] haha so now its looking better i get a file as follows
hey thank you,
I have been writing it to a text file.
I just tried useing the edited source code and for whatever reason it does not like reading my wave file now.. i get Access violation writing...
Hey sorry for the late response, ended up falling asleep! ha
anyways I've changed my source code to what you put there and so far its working great for extracting the data out of the header .. it...
thanks for sticking with me here... this is a simple question but its because fread is very new to me... how to i only read in one byte then?
fread(&clip_info[k],1,6000,file_in);
if thats the...
as of right now i am just using a wave file i recorded myself in windows sound recorder.. 16 bits mono... i do not have a specific wave file for which i know the data ... this is a good idea though...
yes i just do this now
for (k=0; k<=6001; k++)
{
fread(&clip_info[k],6000,2,file_in);
Okay so instead of printing it to the screen i wrote the values to a .txt file... now im getting somewhere.. i get numbers such as this
-5963985
-10616913
-10027213
-2687069
-8126540
-1245280...
so here is the code im using to mess around with trying to read this wave file and view its contents in C
int main(void)
{
int k, x;
int clip_info[10000];
FILE * file_in;
thanks, you rock! I will play with that but will almost garuntee have a few more questions along the way for you... thanks a lot great explanation
Yes i've read a lot on extracting data from the wave file itself and there was way to much info it lost me.. i just want the amplitudes of the audio signal every 0.00125 seconds.... how do i get that...
Hello, I know this isn't 100% C related but I dont know where else to post this.
In a book I have for a comp class at school we are designing a super simplistic speech recognition type software. It...
thanks elysia that worked perfectly I swear i tried very similar steps before but instead of haveing the function defined as a boolean i had it a double.. maybe this is what was causeing a large part...
yes I have, I have not got the chance to work with them much and to be honest if Kbriggs says it can be done with a pointer and an array thats what im really trying to do right now to better...
Thanks for the quick reply, yes the variables, it was at a point where i was just trying everything got quite frustrated so singed up for this and posted it before cleaning everything out sorry..
...
Hey!
I am fairly new to C so forgive me if things arent extremely clear
but basically I'm trying to figure out the full scope of what I can and cant do.
I have a program that takes the...