avoiding VM page swaps for big sample buffers
avoiding VM page swaps for big sample buffers
- Subject: avoiding VM page swaps for big sample buffers
- From: Frank (Steim) <email@hidden>
- Date: Sat, 25 Sep 2004 17:34:49 +0200
Hi,
I am the author of a software sampling manipulation program called LiSa
X and am confronted with the following problem:
In LiSa I use a Sample Buffer where all the needed audio files are kept
resident for instant access (playing, audio manipulation, etc.)
In pre OSX systems if the user needed a big buffer he/she just assigned
as much fysical memory as available and that was it. Now of course this
is no longer possible with the result that if I load a sample of more
than an hour long (16bits stereo, 44.1 kHz) into my buffer that is set
to be 4000 seconds long (using a machine with 1Gb of RAM), and just
wanting to play from the buffer I get a kAudioDeviceProcessorOverload
notifiaction very often, resulting in interrupted audio playback.
Is there any way my app can claim a certain amount of RAM AND to avoid
this to be swapped by the VM Manager? I tried the HoldMemory call but
to no effect.
Any ideas on this would be appreciated.
regards,
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