Subject: Re: [linux-audio-dev] finding the simplest example for setting up alsa to play
From: Jörn Nettingsmeier (nettings_AT_folkwang-hochschule.de)
Date: Sat Nov 03 2001 - 09:11:55 EET
Julien Patrick Claassen wrote:
>
> Sziasztok!
> I want to start using the ALSA-API. I think it offers a great chance to
> write a MIDI-app. But first of all I need to initialize ALSA. I looked
> into the docs, but they didn't help me a lot. Please can you tell me where
> I can find a simple example just perfoming the following tasks:
> 1. Initialize the alsa-api to open the Soundcard for playback
> 2. Open a simple RAW-file, with known srate, channels and bits
> 3. Playing the contens of file using the normal /dev/dsp or even better
> the alsa_pcm interface.
> 4. closing everthing down and exit.
> I am really greatful for good direction-pointing.
> My kindest regards
> Julien
there is an alsa wiki page which currently has only one example, but
it seems to fit your questions exactly. look at the lad news page
(http://www.linuxdj.com/audio/lad/news.php3), it's linked from
there.
-- Jörn Nettingsmeier home://Kurfürstenstr.49.45138.Essen.Germany phone://+49.201.491621 http://spunk.dnsalias.org http://www.linuxdj.com/audio/lad/
This archive was generated by hypermail 2b28 : Sat Nov 03 2001 - 09:07:25 EET