delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/06/30/02:16:37

Date: Thu, 30 Jun 1994 09:05:00 +0300 (EET DST)
From: Janne Kukonlehto <jtklehto AT stekt DOT oulu DOT fi>
Subject: Re: Available : SB library for djgpp
To: Gerhard Kordmann <kordmann AT ldv01 DOT Uni-Trier DOT DE>
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu

On Tue, 28 Jun 1994, Gerhard Kordmann wrote:
> 	As there has been quite some demand for this type of
> 	program I decided to make them generally available, they
> 	are now at : ftp.uni-trier.de via anonymous ftp, in the
> 	directory /pub/local/sb, one README and one sb.zip.
> 	Should there be problems, try contacting me via email,

File sb.c seems to be missing.

In README, Gerhard Kordmann wrote: 
>        5.ERRORS
>
[...]
>        There definitely is a slight choppyness in the recorded
>        soundfiles where the DMA buffers switch. I would be glad
>        if anybody found a remedy and would inform me. 

Choppyness is caused by playing one byte too many. When using DMA you 
should use length minus one instead of the actual length of data.

Because file sb.c is missing I can't give a fix for your version but David
Baggett's version can be fixed as follows: 

In file sb.c, function sb_play_buffer, add following command after 
disable() at line 179:

  sb_buflen[n]--;

That's all.

-- 
Janne Kukonlehto*jtklehto AT stekt DOT oulu DOT fi*http://stekt.oulu.fi/~jtklehto


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019