From: "Andrew Davidson" Newsgroups: comp.os.msdos.djgpp Subject: Re: Fast reading of multiple keypresses in Allegro Date: Thu, 18 Feb 1999 02:42:44 -0000 Organization: Customer of Planet Online Lines: 24 Message-ID: <7afuu7$j1n$1@news6.svr.pol.co.uk> References: <8D53104ECD0CD211AF4000A0C9D60AE353FA26 AT probe-2 DOT acclaim-euro DOT net> <7aenjo$mmm$1 AT news5 DOT svr DOT pol DOT co DOT uk> <201zjovrum DOT fsf AT Sky DOT inp DOT nsk DOT su> NNTP-Posting-Host: modem-33.europium.dialup.pol.co.uk X-Trace: news6.svr.pol.co.uk 919305991 19511 62.136.31.33 (18 Feb 1999 02:46:31 GMT) NNTP-Posting-Date: 18 Feb 1999 02:46:31 GMT X-Complaints-To: abuse AT theplanet DOT net X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.0810.800 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.0810.800 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com wrote in message news:201zjovrum DOT fsf AT Sky DOT inp DOT nsk DOT su... >"Andrew Davidson" writes: > >> I'm trying to create noise by playing a very short sample as fast as >> possible. The sample is created using: >> >> SAMPLE *samp; >> samp=create_sample(8, 0, 1000, 1); > >`len' is a number of samples. 1000 samples playing at 1000 Hz would >play for 1 second. 1 sample at 1 kHz would play for 1 msec (perhaps >it will produce just a click). I think I'm approaching this problem from the wrong angle. Rather than play a sample through allegro's functions is there any way I can simply flex or relax the speakers a single time? Is there an ultra low-level allegro function I can get at to do this? This would be a similar function to writing to port 61h on a pc, but would affect the speakers wired up to the sound card, rather than the pc speaker.