All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Davis <paul@linuxaudiosystems.com>
To: James Courtier-Dutton <James@superbug.demon.co.uk>
Cc: Jaroslav Kysela <perex@suse.cz>,
	Florian Schmidt <mista.tapas@gmx.net>,
	Takashi Iwai <tiwai@suse.de>,
	alsa-devel@lists.sourceforge.net
Subject: Re: difference between OSS mmap and alsa mmap? [alsa-oss]
Date: Tue, 24 Aug 2004 11:47:22 -0400	[thread overview]
Message-ID: <200408241547.i7OFlMKA028889@localhost.localdomain> (raw)
In-Reply-To: Your message of "Tue, 24 Aug 2004 15:30:45 BST." <412B5115.5020309@superbug.demon.co.uk>

>I also think that the best way to handle this is to use double buffering.
>So the user app writes to a ring buffer, and alsa just copies one period 
>at a time to the hardware buffer each time periods_elapsed is called.

this doesn't work. the whole point of the OSS mmap model is that the
app always has access to the entire hardware buffer, not just the
current period. this is why its so hard to make it work correctly in
emulation mode.

--p


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285

      reply	other threads:[~2004-08-24 15:47 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-05 12:42 difference between OSS mmap and alsa mmap? [alsa-oss] Florian Schmidt
2004-07-05 13:13 ` Paul Davis
2004-07-05 13:19   ` Takashi Iwai
2004-08-24 11:57     ` Florian Schmidt
2004-08-24 12:20       ` Florian Schmidt
2004-08-24 13:41       ` Jaroslav Kysela
2004-08-24 14:30         ` James Courtier-Dutton
2004-08-24 15:47           ` Paul Davis [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200408241547.i7OFlMKA028889@localhost.localdomain \
    --to=paul@linuxaudiosystems.com \
    --cc=James@superbug.demon.co.uk \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=mista.tapas@gmx.net \
    --cc=perex@suse.cz \
    --cc=tiwai@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.