comp.lang.ada
 help / color / mirror / Atom feed
From: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Subject: Re: microphone and sound access in Ada
Date: 18 Mar 2003 14:01:42 GMT
Date: 2003-03-18T14:01:42+00:00	[thread overview]
Message-ID: <slrnb7e9m6.k3d.adi@drcomp.erfurt.thur.de> (raw)
In-Reply-To: slrnb7e6qj.b19.randhol+news@kiuk0152.chembio.ntnu.no

Preben Randhol <randhol+news@pvv.org> 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!



  reply	other threads:[~2003-03-18 14:01 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-18 11:18 microphone and sound access in Ada Tony Gair
2003-03-18 11:42 ` Preben Randhol
2003-03-18 12:23   ` Adrian Knoth
2003-03-18 13:12     ` Preben Randhol
2003-03-18 14:01       ` Adrian Knoth [this message]
2003-03-18 14:47         ` Preben Randhol
2003-03-18 15:04           ` Preben Randhol
2003-03-18 13:59     ` Egil Harald H�vik
2003-03-18 14:04       ` Adrian Knoth
2003-03-18 14:49         ` Preben Randhol
2003-03-18 14:53         ` Egil Harald H�vik
2003-03-18 15:09           ` Preben Randhol
2003-03-18 16:51           ` Adrian Knoth
2003-03-18 17:13             ` Preben Randhol
2003-03-18 17:37               ` Adrian Knoth
2003-03-18 18:16                 ` Preben Randhol
2003-03-18 20:23                   ` Adrian Knoth
2003-03-19  8:12                     ` Preben Randhol
2003-03-18 17:45             ` Egil Harald H�vik
2003-03-18 20:18               ` Adrian Knoth
2003-03-18 14:26       ` Preben Randhol
2003-03-18 14:46         ` Egil Harald H�vik
2003-03-18 17:51 ` tmoran
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox