Re: avoiding VM page swaps for big sample buffers
Re: avoiding VM page swaps for big sample buffers
- Subject: Re: avoiding VM page swaps for big sample buffers
- From: Frank (Steim) <email@hidden>
- Date: Mon, 27 Sep 2004 22:29:17 +0200
From: Steve Checkoway <email@hidden>
Subject: Re: avoiding VM page swaps for big sample buffers
To: CoreAudio API <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed
man mlock tells me that you need
#include <sys/types.h>
#incude <sys/mman.h>
And then:
$ nm /usr/lib/libc.dylib |grep mlock
/usr/lib/libc.dylib(mlockall.So):
9005f680 T _mlockall
/usr/lib/libc.dylib(mlock.So):
9004abc0 T _mlock
So all you need is libc and those headers.
- Steve
thanx. but I found another solution. My project is a Mach-o project
using the Frameworks, so to use mlock and munlock you need the Kernel
framework and #include <Kernel/sys/mman.h>.
This has solved my problem, no more hickups in the audio AND improved
GUI response when dealing with big sample buffers!!!
thanks for all the reactions,
Frank
--------------------------
Frank Baldé
software designer
Steim Foundation
http://www.steim.nl
--------------------------
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden