Subject: Re: [linux-audio-dev] initial (incomplete) version of ALSA Audio API tutorial
From: Stefan Kost (kost_AT_imn.htwk-leipzig.de)
Date: Fri Mar 22 2002 - 10:18:23 EET
Hi Paul,
at first thanks a lot for the already useful document. Whay about feeding the example source through :
http://webcpp.sourceforge.net/
If you look fro just very simple noise generation, I would suggest square or saw waves like
//-- square
int sample=MAXSAMPLE;
int ct=HALF_WAVE;
//-- some loop
while(...) {
*(out++)=sample;
if(!(--ct)) {
sample=-sample;
ct=HALF_WAVE;
}
}
For a example the corect synthesis frequency won't matter.
To answer you questions:
I reagrd the first section "Understanding Audio Interfaces" as very important. It good to
bring the critical parts to a early attention. I one starts thinking too late about
latency and things like that, chances are good the the whole design has to be redone.
I gues a few midi examples would be great too, but thats a differen issue.
Stefan
--
\|/
<@ @> Stefan Kost private business
+-oOO-(_)-OOo------------------------------------------------------------- - - - - -
| __ Address Zwenkauer Str. 24 HTWK Leipzig, Fb IMN, Postfach 300066
| /// 04277 Leipzig 04277 Leipzig
| __ /// Germany Germany
| \\\/// Phone +49341 3910483 +49341 30766101
| \__/ EMail st_kost_AT_gmx.net kost_AT_imn.htwk-leipzig.de
| WWW http://www.sonicpulse.de http://www.imn.htwk-leipzig.de/~kost/about.html
===-=-=--=---=---------------------------------- - - - - -
This archive was generated by hypermail 2b28 : Fri Mar 22 2002 - 10:09:03 EET