• 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: AU Render() and multi-out MusicDevice
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AU Render() and multi-out MusicDevice


  • Subject: Re: AU Render() and multi-out MusicDevice
  • From: David Duncan <email@hidden>
  • Date: Thu, 30 Sep 2004 12:51:11 -0400

On Sep 30, 2004, at 11:48 AM, Malcolm Haylock wrote:

 // silence
 for (long o=0; o<fNumOutputs; ++o)
 if(outs[o])
  memset(outs[o], 0, sizeof(float)*sampleFrames);

 return noErr;
}

Under a pevious version of the host all works fine, with asOutBufs.mNumberBuffers=8. Under the latest version asOutBufs.mNumberBuffers=2. Therefore the above code does nothing
to the other 6 channels resulting in noise on these channels.


Please let me know if anything is wrong with my methodology above.

Are you sure your host isn't now interleaving some of the streams? If you want to silence a buffer, instead of sizeof(float)*sampleFrames, use the mDataByteSize field to determine how much to zero.
--
Reality is what, when you stop believing in it, doesn't go away.
Failure is not an option. It is a privilege reserved for those who try.


David Duncan

_______________________________________________
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: 
 >AU Render() and multi-out MusicDevice (From: Malcolm Haylock <email@hidden>)

  • Prev by Date: Re: De-interleave AudioUnit
  • Next by Date: I/O support issue
  • Previous by thread: Re: De-interleave AudioUnit
  • Next by thread: Re: AU Render() and multi-out MusicDevice
  • Index(es):
    • Date
    • Thread