Apologies, I normally indent code, but this was a quick and dirty program written just to check something so I didn't bother. Point taken though :)
Changed it to fgetc and I get the same result...
Type: Posts; User: subtled
Apologies, I normally indent code, but this was a quick and dirty program written just to check something so I didn't bother. Point taken though :)
Changed it to fgetc and I get the same result...
I'm having problems with the below code. Basically, every time the function ADPCMEncoder is called, prevsample and previndex get reset to 0, for no reason that I can see... I've set a breakpoint on...
Thanks for the reply, prevsample and previndex are updated by another function elsewhere. Have changed "code =" to "code |=", but not sure exactly how it works, could you explain? Also, I've found...
I'm having problems with the below code - basically, the value of "sample" which is read never seems to change, even though it does in the input file. Any ideas?
inhandle = fileno(infile);...
I'm trying to write a program which takes a variable number of input file arguments at the command line, but I'm getting a little lost on how to do it. The program will basically need to take a...