Re: PlayThru (was: AudioUnit for default input device)
Re: PlayThru (was: AudioUnit for default input device)
- Subject: Re: PlayThru (was: AudioUnit for default input device)
- From: John Lazzaro <email@hidden>
- Date: Wed, 21 Nov 2001 11:04:41 -0800
>
Jeff Moore <email@hidden> writes
>
>
Wiring memory down is in general not a very portable bit of code.
If someone out there is planning to write a kext to address the
issues brought up on this mailing-list thread, I'd recommend taking
a serious look at the POSIX APIs -- mlock() and friends for memory
locking, and sched_setscheduler() and friends for soft real-time
priority scheduling. There's no reason to re-invent the application
programmer API for these tasks -- POSIX did a pretty good job, Linux
audio programmers use this API and are (generally) happy with it.
See:
Programming for the real world - POSIX.4 by Bill O.
Gallmeister, O'Reilly & Associates, Inc., ISBN
1-56592-074-0
IEEE Std 1003.1b-1993 (POSIX.1b standard)
ISO/IEC 9945-1:1996 - This is the new 1996 revision of
POSIX.1 which contains in one single standard
POSIX.1(1990), POSIX.1b(1993), POSIX.1c(1995), and
POSIX.1i(1995).
and the Linux man pages for a good introduction.
-------------------------------------------------------------------------
John Lazzaro -- Research Specialist -- CS Division -- EECS -- UC Berkeley
lazzaro [at] cs [dot] berkeley [dot] edu www.cs.berkeley.edu/~lazzaro
-------------------------------------------------------------------------