• 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: getting 'kAudioDevicePropertyBufferFrameSize' may reflect invalid values
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getting 'kAudioDevicePropertyBufferFrameSize' may reflect invalid values


  • Subject: Re: getting 'kAudioDevicePropertyBufferFrameSize' may reflect invalid values
  • From: Jeff Moore <email@hidden>
  • Date: Thu, 6 Mar 2008 12:20:35 -0800

You missed adding details to your email so that we can help you figure out what's going on. It would be nice to know something about the audio device you are supporting, specifically what the stream layout looks like as well as what the data formats are. It would also be nice to know the size of your ring buffer in sample frames.

At any rate, HALLab just reports what the HAL tells it. It sounds like your driver is reporting unusual values for things to the HAL. This is probably why other apps are failing with your driver.

On Mar 6, 2008, at 2:40 AM, David Zimmermann wrote:

I`m writing an IOKit audio hardware driver.
I tested the driver with the HALLab tool and experienced problems.
The app seems to assume a wrong size in frames of my hardware sample buffers.
The arguments to my IOProcs pointed me to that conclusion.


I reflect my hardwares sample buffer size in frames via IOAudioEngine::setNumSampleFramesPerBuffer
within my subclasses initHardware.
Debugging the HALLab shows that the Audio HAL reflects valid sample buffer ranges (kAudioDevicePropertyBufferFrameSizeRange) but
the reflected current buffer size may be out of range (kAudioDevicePropertyBufferFrameSize) and thereby invalid.


For testing purposes I changed the HALLab source to limit every HAL reflected "kAudioDevicePropertyBufferFrameSize" against
the range and reset the property with that limited value.
Afterwards HALLab works fine with my driver.


But no other app does...
What do I miss ?



--

Jeff Moore
Core Audio
Apple


_______________________________________________ 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: 
 >getting 'kAudioDevicePropertyBufferFrameSize' may reflect invalid values (From: David Zimmermann <email@hidden>)

  • Prev by Date: Re: CASpectralProcessor and general 64 bit SDK compatibility
  • Next by Date: Re: Using all inputs/outputs from MOTU ultralight
  • Previous by thread: getting 'kAudioDevicePropertyBufferFrameSize' may reflect invalid values
  • Next by thread: Re: getting 'kAudioDevicePropertyBufferFrameSize' may reflect invalid values
  • Index(es):
    • Date
    • Thread