• 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
Is it safe to use memset() & memcpy() in my callback?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Is it safe to use memset() & memcpy() in my callback?


  • Subject: Is it safe to use memset() & memcpy() in my callback?
  • From: Steve gfx <email@hidden>
  • Date: Tue, 5 Oct 2010 21:11:54 +0100

I've read various dos & don'ts about what is safe to run inside an input Audio Unit  callback.
I'm sequencing lots of small sounds which I'm copying from memory in to the callback buffers.
Is it safe to use memcpy()  to copy across my buffers, and memset(frameBuffer, 0,  length) to silence the parts of the stream I need to?

I'm hoping it should be quicker than looping/filling one frame at a time.

Thanks

Steve

 _______________________________________________
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

  • Follow-Ups:
    • Re: Is it safe to use memset() & memcpy() in my callback?
      • From: Paul Davis <email@hidden>
  • Prev by Date: Re: drawing a waveform
  • Next by Date: Re: Is it safe to use memset() & memcpy() in my callback?
  • Previous by thread: Re: drawing a waveform
  • Next by thread: Re: Is it safe to use memset() & memcpy() in my callback?
  • Index(es):
    • Date
    • Thread