delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/11/23/08:18:10

From: "Bettina Altmann" <psy97mho AT studserv DOT uni-leipzig DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Q: Allegro, precise sound timing
Date: Tue, 23 Nov 1999 11:38:10 +0100
Organization: Uni Leipzig
Lines: 20
Message-ID: <81dqrc$572@news.uni-leipzig.de>
NNTP-Posting-Host: printsrv.psychologie.uni-leipzig.de
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2014.211
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi allegro experts,

for an experiment we have to compare the exact timing of a click that is
presented by the soundcard with that of a keypress. Therefore we have to
know the position of the voice playing the audiostream containing the clicks
very precisely. Test of     int voice_get_position(int voice)
yielded that it gives the current position only in units of 248 samples
(with our setup). That wouldnt matter so much because we can measure the
change from one 248 sample chunk to the next very precisely (using
uclock()). But we still have the problem of not knowing where the actual
position of the sound is when the chunk is changed. Can someone help us with
that ?

Thank you

Bettina + Raul




- Raw text -


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