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-Language: ENGLISH,ASCII X-Google-Thread: 103376,f32bbeaf2a1de22d X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-03-18 06:30:05 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.vmunix.org!newsfeed01.sul.t-online.de!newsfeed00.sul.t-online.de!t-online.de!news1.dtag.de!news.erfurt.igrz.de!drcomp.erfurt.thur.de!not-for-mail From: Adrian Knoth Newsgroups: comp.lang.ada Subject: Re: microphone and sound access in Ada Date: 18 Mar 2003 14:01:42 GMT Organization: Modern Electronics Message-ID: References: <6a90b886.0303180318.7f4f013e@posting.google.com> NNTP-Posting-Host: drcomp.erfurt.thur.de Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Server-Date: 18 Mar 2003 14:01:42 GMT User-Agent: slrn/0.9.7.4 (Linux) Xref: archiver1.google.com comp.lang.ada:35454 Date: 2003-03-18T14:01:42+00:00 List-Id: Preben Randhol wrote: >> Yes. I proposed that some weeks ago, perhaps we should start. Any further >> interests? > I'm in. Although, I have to read up on how to do C bindings first as I > haven't done this before. I guess GtkAda is a good source for examples > :-) I think so, too. Most is pragma Import :) > libao: > Libao is a cross-platform library that allows programs to output PCM > audio data to the native audio devices on a wide variety of platforms. > It currently supports: > > * OSS (Open Sound System) > * ESD (ESounD) > * ALSA (Advanced Linux Sound Architecture) > * Sun audio system (used in Solaris, OpenBSD, and NetBSD) > * aRts (Analog Realtime Synthesizer) > > (hope this can do input as well) Well, libao is a generic audio-output-library. We might want to use it or simply cat to /dev/audio :) > libogg: > Libogg contains necessary functionality to create, decode, and work with > Ogg bitstreams. This would be important for speex. > libvorbis: > * libvorbisenc > > Libvorbisenc is a convenient API for setting up an encoding > environment using libvorbis. Libvorbisenc encapsulates the actions > needed to set up the encoder properly. This is a later issue. Sure encoding is important, but playback might be in first release, because it's easier. > * Vorbisfile > The Vorbisfile library provides a convenient high-level API for > decoding and basic manipulation of all Vorbis I audio streams. Nice. I guess we can start right here. It is linked against libogg, so we can neglect a binding to it first: adi@drcomp:~$ ldd /usr/local/lib/libvorbisfile.so.3.0.0 | grep ogg libogg.so.0 => /usr/local/lib/libogg.so.0 (0x40033000) > Libvorbisfile is implemented as a layer on top of Xiph.org's > reference libogg and libvorbis libraries. Sure. It might even be fun to write a binding to the ALSA-API, best case would be a native kernel-binding. Lutz? On the other hand, a wrapper around the C-library would work as well. -- mail: adi@thur.de http://adi.thur.de PGP: v2-key via keyserver Liebe deinen n�chsten so wie den ersten!