• 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: Page faults hurt sound quality
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Page faults hurt sound quality


  • Subject: Re: Page faults hurt sound quality
  • From: William Stewart <email@hidden>
  • Date: Tue, 14 Oct 2003 10:41:52 -0700

On 13/10/2003, at 11:35 PM, Philippe Wicker wrote:
By wiring your sound buffers you are just making it more likely that your program's code gets paged out instead of the buffer, which is equally bad or worse. And if you wired your program in memory then it might page out a framework you need. Wiring more and more memory is just painting yourself in a corner. By the time the system needs to page, if it chooses one of your buffers it is because they are cold. Something will have to give.

So it appears that a good solution is to anticipate the use of the memory and to touch the pages.

Thus the suggestion of using AudioUnitReset to do that. We will ensure that we tell host apps to make sure they either call this - which should occur of course for "semantic" reasons if an AU has been used and is muted for example, as well as taking some steps to "preroll" a chain of AU's that are about to be used for the first time...

Bill

-- mailto:email@hidden
tel: +1 408 974 4056

________________________________________________________________________ __
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________ __
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.
References: 
 >Re: Page faults hurt sound quality (From: Philippe Wicker <email@hidden>)

  • Prev by Date: Re: playing mono files
  • Next by Date: Re: AudioConverter fails on SRC when formats are float -> float
  • Previous by thread: Re: Page faults hurt sound quality
  • Next by thread: Apple Loop IFF extensions?
  • Index(es):
    • Date
    • Thread