• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: avoiding VM page swaps for big sample buffers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: AudioConverterNew unknown error
  • Next by Date: AudioConverters - how many required?
  • Previous by thread: Re: avoiding VM page swaps for big sample buffers
  • Next by thread: Re: avoiding VM page swaps for big sample buffers
  • Index(es):
    • Date
    • Thread