home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / c / 19543 < prev    next >
Encoding:
Text File  |  1993-01-11  |  1.1 KB  |  29 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!brunix!cs.brown.edu!sj
  3. From: sj@cs.brown.edu (Shuang Ji)
  4. Subject: Re: Missing sound function
  5. Message-ID: <1993Jan11.190222.23139@cs.brown.edu>
  6. Sender: news@cs.brown.edu
  7. Organization: Brown Computer Science Dept.
  8. References:  <0096672C.05F89EC0@128.104.39.173>
  9. Date: Mon, 11 Jan 1993 19:02:22 GMT
  10. Lines: 17
  11.  
  12. In article <0096672C.05F89EC0@128.104.39.173>, sprott@128.104.39.173 (Sprott@Juno.Physics.Wisc.Edu) writes:
  13. |> I'm inexperienced in C but just converted a BASIC program to Microsoft Quick
  14. |> C v. 2.5.  Everything works fine, except there does not appear to be a C
  15. |> equivalent to the BASIC statement SOUND frequency, duration for generating
  16. |> audible tones.  Does anyone know a way to accomplish this?  I also have
  17. |> Turbo C++ for DOS v. 3.0, but it also lacks sound capability.  Thanks.
  18.  
  19. Turbo C++ does have sound capability. In my impression, there is a function
  20. called sound() which will enable you to send frequency to the audio port.
  21. There is also a function whose name I forgot that can stop the speaker.
  22. Check your on-line manual for details.
  23.  
  24. Hope this helps.
  25.  
  26.  
  27.  
  28. Shuang
  29.