delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/22/11:19:47

From: Shawn Hargreaves <Shawn AT talula DOT demon DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro & WAV files
Date: Sat, 22 Mar 1997 14:12:42 +0000
Organization: None
Distribution: world
Message-ID: <9AHMXKAaj+MzEwT2@talula.demon.co.uk>
References: <19970318 DOT 231802 DOT 18302 DOT 1 DOT bshadwick AT juno DOT com>
<L6nhZGAaWEMzEwXy AT talula DOT demon DOT co DOT uk> <5h0l9d$kjk AT bagan DOT srce DOT hr>
NNTP-Posting-Host: talula.demon.co.uk
MIME-Version: 1.0
Lines: 17
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Simun Mikecin writes:
>Couldn't you use 64-bit unsigned int (unsigned long long), 
>and have both the accuracy and length?

I could do, but it wouldn't be nearly as efficient. Sample mixing is one
of those trivial little operations that gets repeated millions of times
in a tight loop, so switching from 32 to 64 bit ints would cause a
significant performance hit. 

I think that by tweaking the shift value I can get it to play samples up
to a minute or two in length, and anything much longer than that is
going to have trouble fitting into memory in any case...


--
Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
Beauty is a French phonetic corruption of a short cloth neck ornament.

- Raw text -


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