From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.7 required=5.0 tests=BAYES_00,MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8e7a2129ce38c12c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-01-12 07:25:55 PST Path: supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!news.iac.net!news-out.cwix.com!newsfeed.cwix.com!newsfeed.direct.ca!look.ca!logbridge.uoregon.edu!news.maxwell.syr.edu!nntp2.deja.com!nnrp1.deja.com!not-for-mail From: Ted Dennison Newsgroups: comp.lang.ada Subject: Re: soundcard Date: Fri, 12 Jan 2001 15:11:56 GMT Organization: Deja.com Message-ID: <93n6ri$eml$1@nnrp1.deja.com> References: <93mr6p$33l$1@eol.dd.chalmers.se> NNTP-Posting-Host: 204.48.27.130 X-Article-Creation-Date: Fri Jan 12 15:11:56 2001 GMT X-Http-User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; 0.7) Gecko/20010109 X-Http-Proxy: 1.0 x68.deja.com:80 (Squid/1.1.22) for client 204.48.27.130 X-MyDeja-Info: XMYDJUIDtedennison Xref: supernews.google.com comp.lang.ada:3955 Date: 2001-01-12T15:11:56+00:00 List-Id: In article <93mr6p$33l$1@eol.dd.chalmers.se>, "Daniel Nilsson" wrote: > I need info on how to use soundcard in ada95 , Myself I have a > soundblaster 128 pci. I have no prior experience in > soundcard-programming. What you need then is info on how to program a soundcard, period. Ada95 will only be an issue when you already know exactly what you want to do. As for how to program a soundcard, period; this isn't the proper newsgroup to be asking in. But from my (miniscule) knowledge of the subject, I'd say (assuming you are using some recent version of Windows, which you didn't bother to tell us) you'll probably want to put the appropriate sound in a .WAV file and call the "PlaySound" system service. See your nearest Windows programming documentation for more info on this. If you can't find an Ada binding to this system call, it should be fairly easy to make your own. If you want to do something more complicated, you'll probably need to learn how to use the DirectSound API. Once you have that figured out, I think the best way into it from Ada is probably going to be through COM. See http://www.adapower.com/gnatcom/index.html for more information on this. -- T.E.D. http://www.telepath.com/~dennison/Ted/TED.html Sent via Deja.com http://www.deja.com/