Mail Archives: djgpp/1997/04/18/15:55:26
From: | Edward Schlunder <zilym AT asu DOT edu>
|
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
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
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/
- Raw text -