Search:

Type: Posts; User: subtled

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    1,505

    Apologies, I normally indent code, but this was a...

    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...
  2. Replies
    2
    Views
    4,666

    Values changing without reason?

    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...
  3. Replies
    6
    Views
    1,505

    Thanks for the reply, prevsample and previndex...

    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...
  4. Replies
    6
    Views
    1,505

    fread() value not changing?

    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);...
  5. Making a program take a variable number of arguments

    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...
Results 1 to 5 of 5