X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Hans-Bernhard Broeker Newsgroups: comp.os.msdos.djgpp Subject: Re: sound(), delay(), etcoetera Date: 18 Mar 2006 22:41:03 GMT Lines: 27 Message-ID: <483gjvFh8q8aU1@news.dfncis.de> References: X-Trace: news.dfncis.de kvW0jGm5VZ2WQ6vgzA/9IQq+w/t7aCIdVBb0Yci7f6rpyzLD3Rd6DbpUXQ X-Orig-Path: not-for-mail To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Fausto Arinos Barbuto wrote: > they don't seem to work on my computer (HP a810n, AMD-64, > Realtek AC'97 Audio). For example, the sample code below > compiles like a charm but produces no sound or delay at all: The sound produced by sound() is supposed to come out of your system's beeper. If the system doesn't have such a thing, and/or the drivers don't support DOS, or you've silenced the beeper in your sound hardware's volume control panel, then you won't hear anything. 4000 Hz is also rather high --- it's uncertain the beeper supports it. This much simplified programs works just fine on my laptop: #include #include int main() { sound(1000); delay(1000); nosound(); return 0; } -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.