• 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: are outOutputData mData float buffers always zeroed?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: are outOutputData mData float buffers always zeroed?


  • Subject: Re: are outOutputData mData float buffers always zeroed?
  • From: Jeff Moore <email@hidden>
  • Date: Fri, 12 Jul 2002 14:26:48 -0700

The HAL does indeed zero out the output buffers prior to calling your IO proc. If you don't want to supply any data for that cycle, all you have to do is return.

On Friday, July 12, 2002, at 12:50 PM, John Lazzaro wrote:

A quick HAL question: if the mFormatFlags of the
AudioStreamBasicDescription has kLinearPCMFormatFlagIsFloat
set, is the associated mData buffer of the AudioBufferList
passed into outOutputData to the AudioDeviceIOProc guaranteed
to have each float value set to 0.0F? I.e. if the desired output is
silience, is it always safe to simply immediately return from
a AudioDeviceIOProc? Or is it necessary to manually zero all
mData buffers of outOutputData, because they might be passed
in with random values? Thanks in advance ...

--

Jeff Moore
Core Audio
Apple
_______________________________________________
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: are outOutputData mData float buffers always zeroed?
      • From: Brian Willoughby <email@hidden>
References: 
 >are outOutputData mData float buffers always zeroed? (From: John Lazzaro <email@hidden>)

  • Prev by Date: Re: are outOutputData mData float buffers always zeroed?
  • Next by Date: Re: setting up independent timing thread
  • Previous by thread: Re: are outOutputData mData float buffers always zeroed?
  • Next by thread: Re: are outOutputData mData float buffers always zeroed?
  • Index(es):
    • Date
    • Thread