Mail Archives: djgpp/1997/03/22/11:19:47
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 -