On Wed, Jul 10, 2002 at 10:22:33AM -0700, Joshua Haberman wrote:
> * Philipp Vollmer ([EMAIL PROTECTED]) wrote:
> > Hello list,
> > 
> > I'm searching for a exact description of the PCM system.
> > The ALSA examples and HOWTO give a rough description of this system.
> > I actually only want to understand this system and want to create some
> > little application creating sine or other signals. There are some complex
> > signal generator examples online, but no simple description. Are there
> > books, really good examples or tutorials about this?
> 
> It's a rough work-in-progress, but I have an overview of ALSA in the
> works:
> 
>     http://people.debian.org/~joshua/t1.html
> 
hi,

as i said above, nice work, and nice that someone does this.
i tried yesterday your mmap implemantation and at least get it to work
somehow, but im right that:

outbuffer = (area->addr + (area->first + area->step * (offset)) / 8);

returns only a pointer to the buffer? i have to do:

          memset(outbuffer, 0, frames_transmit);
          memcpy(outbuffer, data, frames_transmit);

to really wright data to the buffer. i get also some kind of fragments
staying in buffer if i guess one 'frames_transmit' is smaller than the
written before or/and if its not aligned to fragment_size, a funny
effect, but im currently don't know how to clean it up.


-- 
regards

____-
joy

________/\---------%%%___________-----------
webcast every sunday 2000 cest at pingfm.org

pgp key at: x-hkp://wwwkeys.de.pgp.net

Reply via email to