Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!image.soe.clarkson.edu!AAron From: AAron@image.soe.clarkson.edu (AAron nAAs) Newsgroups: comp.sys.atari.st Subject: fread problems in MWC when loading my STE samples!! Message-ID: <1990Jul7.183335.3152@sun.soe.clarkson.edu> Date: 7 Jul 90 18:33:35 GMT Sender: AAron@sun.soe.clarkson.edu (AAron nAAs) Organization: Clarkson University, Potsdam, NY Lines: 22 I am writing an STe digital sample player, and am having a problem with fread. count = fread(buffer, size, n, fp); I give it all the correct parameters, and verified this by printing them out beforehand. The problem is that the command won't ALWAYS read the "n" bytes that I request. "count" ends up less than "n". Since I am doing this several times in a row (and advancing the "buffer") to load large samples, there are gaps in the sample when it is played. Does fread stop when it encounters a certain byte code, thinking it has reached the end of file? AAron nAAs Yes, once I get this STe digital sample player totally working, I WILL post it to the net!! AAron@sun.soe.clarkson.edu