C/C++
cpro0602.txt
Associated article: Back to the Stick Bass,...uh Bull Fiddle
Tags: C/C++
Published source code accompanying the article by Al Stevens where he presents techniques for handling WAV files.
C Programming Column
by Al Stevens
Listing One
#include <stdio.h>
#include <string.h>
short getsample(FILE**ch)
{
short sample = 0;
if (*ch) {
if (feof(*ch)) {
fclose(*ch);
*ch = NULL;
}
else
fread(&sample, sizeof(short), 1, *ch);
}
...


