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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,8e7a2129ce38c12c X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!f14g2000cwb.googlegroups.com!not-for-mail From: "Adrian Hoe" Newsgroups: comp.lang.ada Subject: Re: soundcard Date: 27 Jan 2005 18:57:23 -0800 Organization: http://groups.google.com Message-ID: <1106881043.723940.293120@f14g2000cwb.googlegroups.com> References: <93mr6p$33l$1@eol.dd.chalmers.se> NNTP-Posting-Host: 219.95.187.180 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1106881047 17753 127.0.0.1 (28 Jan 2005 02:57:27 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 28 Jan 2005 02:57:27 +0000 (UTC) In-Reply-To: User-Agent: G2/0.2 Complaints-To: groups-abuse@google.com Injection-Info: f14g2000cwb.googlegroups.com; posting-host=219.95.187.180; posting-account=LKUaWwwAAABzCo8SD2jIIt5LtkPzH8ot Xref: g2news1.google.com comp.lang.ada:8035 Date: 2005-01-27T18:57:23-08:00 List-Id: Hi, I am searching for something similar and I have found this old thread but my interest is not in programming sound card. Anders Gidenstam wrote: > In article <93mr6p$33l$1@eol.dd.chalmers.se>, > "Daniel Nilsson" writes: > > Hi. > > 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. > > Hello, > > Well, this of course completely operating system dependent. (Assuming that > you are using an operating system, but I'd guess you are ;) > > Anyway, if you happen to use Linux (or some other Unix system) the sound > system are controlled through some device files (for example > /dev/dsp and /dev/mixer on linux) using the OS read/write and ioctl calls. > So what you want/need is an Ada-binding for the soundsystem on your > operating system. > The Florist POSIX binding provide open/close/read/write but I think you'll > need to create your own binding for the ioctl calls. What's the difference of open/read/write between Florist POSIX binding and gnat_os_lib? > I have a small partial working (maybe) binding for the linux mixer API that > I wrote some years ago, if you are interested I could send it. Yes, I'm interested to take a look at the code. Where can I find them? > /Anders Gidenstam > -- > -------------------------------------------- > "A well-written program is its own heaven; > a poorly-written program is its own hell." > - The Tao of Programming Thanks. -- Adrian Hoe