Linux Sound subsystem development
 help / color / mirror / Atom feed
* Re: [linux-audio-dev] streaming from disk to terminatorX added (via mmap)
@ 1999-10-24 17:07 Paul Barton-Davis
  1999-10-24 17:09 ` [linux-audio-dev] streaming from disk to terminatorX added (via Andy Lo A Foe
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Paul Barton-Davis @ 1999-10-24 17:07 UTC (permalink / raw)
  To: linux-sound

Benno writes:

>Since the kernel loads pages of the file into mem when they are
>needed, it could cause audio-dropouts when working with low audio
>buffer sizes (low latency) since, the playing thread might wait too
>long for the kernel which tries to load the pages into mem.

>One trick to avoid this it to add a low priority thread , which does
>basically read-ahead and read-behind, by accessing to pages before
>and past the actual playing position.  It doesn't matter if this
>thread blocks for a moment, since it doesn't play any audio data.
>The audio thread will always find the needed pages in memory and will
>not drop out.

i know that est@hyperreal.org will have something to say about this :)
well, perhaps not, but he should. oolaboola (sp?) has been evolving
toward some fairly sophisticated memory management to handle this kind
of stuff.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~1999-10-26  6:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-10-24 17:07 [linux-audio-dev] streaming from disk to terminatorX added (via mmap) Paul Barton-Davis
1999-10-24 17:09 ` [linux-audio-dev] streaming from disk to terminatorX added (via Andy Lo A Foe
1999-10-24 20:32 ` est
1999-10-25 12:52 ` [linux-audio-dev] streaming from disk to terminatorX added (via mmap) Benno Senoner
1999-10-25 12:58 ` Benno Senoner
1999-10-26  6:59 ` [linux-audio-dev] streaming from disk to terminatorX added (via Andy Lo A Foe

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