Lines Matching refs:soundFile
22 FILE *soundFile; member
39 bytesWritten = fwrite(bytes, sizeof(char), length, file->soundFile); in writeBytes()
94 return fread(bytes, sizeof(char), length, file->soundFile); in readBytes()
108 numRead = fread(bytes, sizeof(char), length, file->soundFile); in readExactBytes()
230 FILE *soundFile = file->soundFile; in closeFile() local
232 if(soundFile != NULL) { in closeFile()
233 fclose(soundFile); in closeFile()
234 file->soundFile = NULL; in closeFile()
246 FILE *soundFile = fopen(fileName, "rb"); in openInputWaveFile() local
248 if(soundFile == NULL) { in openInputWaveFile()
253 file->soundFile = soundFile; in openInputWaveFile()
271 FILE *soundFile = fopen(fileName, "wb"); in openOutputWaveFile() local
273 if(soundFile == NULL) { in openOutputWaveFile()
278 file->soundFile = soundFile; in openOutputWaveFile()
293 FILE *soundFile = file->soundFile; in closeWaveFile() local
297 if(fseek(soundFile, 4, SEEK_SET) != 0) { in closeWaveFile()
307 if(fseek(soundFile, 40, SEEK_SET) != 0) { in closeWaveFile()