delorie.com/archives/browse.cgi | search |
From: | "Chris" <igneous AT surfbest DOT net> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | dos sound and cout |
Date: | Sun, 1 Apr 2001 13:50:31 -0400 |
Organization: | Budget Internet |
Lines: | 37 |
Sender: | newservice AT 1cust143 DOT tnt1 DOT philadelphia2 DOT pa DOT da DOT uu DOT net |
Message-ID: | <9a7pk9$vod$1@news.chatlink.com> |
NNTP-Posting-Host: | 1cust143.tnt1.philadelphia2.pa.da.uu.net |
X-Trace: | news.chatlink.com 986147273 32525 63.26.12.143 (1 Apr 2001 17:47:53 GMT) |
X-Complaints-To: | abuse AT chatlink DOT com |
NNTP-Posting-Date: | 1 Apr 2001 17:47:53 GMT |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Newsreader: | Microsoft Outlook Express 5.50.4133.2400 |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.50.4133.2400 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
why does it make all the sounds and then print the frequencies #include <dos.h> #include <iostream> int main() { int i; int z; float a = 1.0594631; float b = 41.2034; while(b < 831.61){ sound(b); std::cout.precision(4); std::cout<<b<<" "; b*= a; delay(50); } b /= a; nosound(); while(b > 40.0){ sound(b); std::cout.precision(4); std::cout<<b<<" "; b /= a; delay(50); } nosound(); return 0; }
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |