• 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: Quasi-realtime threads
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Quasi-realtime threads


  • Subject: Re: Quasi-realtime threads
  • From: Ethan Funk <email@hidden>
  • Date: Tue, 30 Jun 2009 18:27:21 -0700

UPDATE:
I have things working well on OS X 10.5 using the following approach to raise my audio pull pthread to a realtime-like thread:

struct sched_param p;

p.sched_priority = sched_get_priority_max(SCHED_FIFO);
if(pthread_setschedparam(pthread_self(), SCHED_FIFO, &p))
ServerLoger->MakeEntry("Failed to set thread priority.");

On OS X 10.4 however, the sent audio is very broken up.  The pthread_setschedparam call is not returning an error however, so I don't know what is different in the pthread library between the OS versions.  It appears as if 10.4 is just ignoring the thread schedule change.  Any ideas?

Thanks,
Ethan...

 _______________________________________________
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

References: 
 >Quasi-realtime threads (From: Ethan Funk <email@hidden>)

  • Prev by Date: Audio distortion after several hours?
  • Next by Date: Playing iPod Audio With AVAudioPlayer
  • Previous by thread: Quasi-realtime threads
  • Next by thread: reasons for AudioSession interruptions
  • Index(es):
    • Date
    • Thread