• 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: Setting the buffer size when using the Default Output AudioUnit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting the buffer size when using the Default Output AudioUnit


  • Subject: Re: Setting the buffer size when using the Default Output AudioUnit
  • From: Bill Stewart <email@hidden>
  • Date: Tue, 18 Feb 2003 19:17:40 -0800

NO!!!

You should NOT have to use a real time thread for this...

A Round Robin or Fixed Priority thread of a 62 or 63 priority level should be completely sufficient to avoid this problem

Million Monkees also shows you how to do that and a real time thread will create more problems for you than it will solve (you'll start to out compete the hardware I/O requirements)

Bill

On Tuesday, February 18, 2003, at 01:31 PM, Pierre-Olivier Latour wrote:

Threaded operations work, but without being superuser, I cannot set the
thread priority above (below) 0, and this is inadequate for audio
operations. The slightest window move or scrolling will disrupt the audio,
even though the decoder consumes no more than 20% of the CPU on a 450Mhz G4.

Move your thread to real-time scheduling mode:
See /usr/include/mach/thread_act.h


_____________________________________________________________

Pierre-Olivier Latour email@hidden
Palo Alto, USA http://www.pol-online.net
_______________________________________________
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.


-- 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: Setting the buffer size when using the Default Output AudioUnit (From: Pierre-Olivier Latour <email@hidden>)

  • Prev by Date: Re: strange error using the AudioFile API
  • Next by Date: Re: strange error using the AudioFile API
  • Previous by thread: Re: Setting the buffer size when using the Default Output AudioUnit
  • Next by thread: Re: Setting the buffer size when using the Default Output AudioUnit
  • Index(es):
    • Date
    • Thread