www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/06/08/18:40:51

Xref: news-dnh.mv.net comp.os.msdos.djgpp:247
Path: news-dnh.mv.net!mv!news.sprintlink.net!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!decwrl!gatekeeper.us.oracle.com!inet-nntp-gw-1.us.oracle.com!imacky
From: imacky AT us DOT oracle DOT com (Ian Macky)
Newsgroups: comp.os.msdos.djgpp
Subject: usleep == sleep?
Date: 8 Jun 1995 19:48:39 GMT
Organization: Oracle Corporation
Lines: 14
References: <D9t5ys DOT Ans AT jade DOT mv DOT net>
Nntp-Posting-Host: kiwi.us.oracle.com
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Dj-Gateway: from newsgroup comp.os.msdos.djgpp

Aaron suggested:

>sound(f); /* f is the desired frequency */
>usleep(t); /* t is the duration in microseconds (1e-6 s) */
>nosound();

But alas, it appears:

#define usleep(t)	sleep(t / 1000000)

Is this still true?  Is it fixed in the latest version?  Can anyone
get the suggested beeper to work?

--ian

- Raw text -


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