• 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 a streaming pcm buffer?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Playing a streaming pcm buffer?


  • Subject: Re: Playing a streaming pcm buffer?
  • From: "Harel M. Williams" <email@hidden>
  • Date: Sun, 15 Apr 2007 17:59:35 -0400

Hi Joachim,

I am no expert, but I am pretty sure you are supposed to use
'kAudioUnitProperty_SetRenderCallback' in place of
'kAudioUnitProperty_SetRenderCallback' as described in the sampel code
provided in TN2097:

   //Note: Some old V1 examples may use
   //"kAudioUnitProperty_SetInputCallback" which existed in
   //the old API, instead of "kAudioUnitProperty_SetRenderCallback".
   //"kAudioUnitProperty_SetRenderCallback" should
   //be used from now on

http://developer.apple.com/technotes/tn2004/tn2097.html

Regards,

-Harel

On 4/15/07, Joachim Bengtsson <email@hidden> wrote:
Hey,

I'm receiving an ordinary interleaved pcmfloat buffer (through the network),
and would like to play it. How would one go about doing this? I'm using the
kAudioOutputUnitProperty_SetInputCallback property on an AU
to capture the audio on the sending end (and then interleaving it using the
audioconverter api), so I was thinking I could use something similar on the
receiving end. There's the
kAudioUnitProperty_SetInputCallback property, but
apparently it's deprecated, and there's no pointers in neither the
documentation nor the headers of what to use instead (the documentation
seems to be out of date and promotes the usage of the above callback).

I found
http://www.snoize.com/Code/PlayBufferedSoundFile.tar.gz
from
http://lists.apple.com/archives/coreaudio-api/2003/Sep/msg00009.html
which answered my question perfectly, except that it uses that deprecated
property.

Any pointers are greatly appreciated.

Regards,
 Joachim Bengtsson
 _______________________________________________
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

_______________________________________________
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: 
 >Playing a streaming pcm buffer? (From: Joachim Bengtsson <email@hidden>)

  • Prev by Date: Playing a streaming pcm buffer?
  • Next by Date: DttSP (Software Defined Radio Core) in an Audio Unit
  • Previous by thread: Playing a streaming pcm buffer?
  • Next by thread: DttSP (Software Defined Radio Core) in an Audio Unit
  • Index(es):
    • Date
    • Thread