• 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: playing files from disk [was: Help for dumb *****]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: playing files from disk [was: Help for dumb *****]


  • Subject: Re: playing files from disk [was: Help for dumb *****]
  • From: Arthur Clemens <email@hidden>
  • Date: Tue, 26 Mar 2002 20:30:23 +0100

read up on pthread_cond_signal and pthread_cond_wait.
Your ioproc should call pthread_cond_signal when the buffer is empty
and the feeder should call pthread_cond_wait to wait for these signals.



Ok, in searching the sparse docs, I just wanted to share this link:
http://developer.apple.com/technotes/tn/tn2028.html#MacOSXThreading

will read it now...


Is there a reason to use pthreads instead of NSThreads in a Cocoa application?



One other question: if I want to play multiple files from disk, would I need multiple IOprocs, or could I use one IOproc that iterates through all the channels?





Arthur
_______________________________________________
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.

  • Follow-Ups:
    • Re: playing files from disk [was: Help for dumb *****]
      • From: "AUDIOSYNTH.COM" <email@hidden>
References: 
 >Re: Help for dumb ass's (From: "AUDIOSYNTH.COM" <email@hidden>)

  • Prev by Date: R e: Help for dumb *****
  • Next by Date: CRAudioUnits
  • Previous by thread: Re: Help for dumb ass's
  • Next by thread: Re: playing files from disk [was: Help for dumb *****]
  • Index(es):
    • Date
    • Thread