From: Edward Schlunder Newsgroups: comp.os.msdos.djgpp Subject: Re: SB + DJGPP Date: Thu, 17 Apr 1997 23:39:54 -0700 Organization: USWEST - Internet Services Lines: 18 Message-ID: <3357173A.98707008@asu.edu> References: <3348CBD3 DOT 178B AT asturies DOT org> NNTP-Posting-Host: dialup24.asu.uswest.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Xorxe wrote: > Well... if the wav file is 16-bit, then no problem, but if it's an > 8-bit file, it makes one 'click' at the printf (at every block transfer) > > I don't know what I'm doing wrong... any suggestion? This is the classic case of playing one byte too many or not enough. Try changing the number of bytes to play back one or forward one. The cause of the click is the sound hardware playing one sample that isn't part of the sound data. Since it isn't part of the sound data, it's value will probably be very different from the last sample played, resulting in an audible click. --- Ed Schlunder [Author of BWSB, OmniPlayer, and PeriGraph] email: zilym AT aztec DOT asu DOT edu, zilym AT asu DOT edu, edward AT earthvision DOT asu DOT edu url: http://earthvision.asu.edu/~edward/