• 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: properties data size
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: properties data size


  • Subject: Re: properties data size
  • From: Jeff Moore <email@hidden>
  • Date: Thu, 07 Mar 2013 11:44:55 -0800

Are you sure you are implementing the property correctly?

By my calculations:
   4 * sizeof(AudioStreamRangedDescription)
=  4 * 56
=  224
!= 160

FWIW, it sounds like you are using sizeof(AudioStreamBasicDescription) rather than sizeof(AudioStreamRangedDescription):
   4 * sizeof(AudioStreamBasicDescription)
=  4 * 40
=  160


--

Jeff Moore
Core Audio
Apple



On Mar 7, 2013, at 11:30 AM, Eric Gorouben <email@hidden> wrote:

> I have a strange problem with the properties data sizes in my AudioServer plugin.
> For example, I implement the kAudioStreamPropertyAvailablePhysicalFormats property.
>
> In the GetPropertyDataSize proc, I give a 160 bytes answer (4*sizeof(AudioStreamRangedDescription))
> But in the GetProperty proc, inDataSize is only 112 bytes (for the same inObjectID, of course).
>
> In another similar situation, I give 320 bytes as data size, and get only 280 for the data.
>
> What did I miss?


 _______________________________________________
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: properties data size
      • From: Eric Gorouben <email@hidden>
References: 
 >Debugging an AudioServer plugin (From: Eric Gorouben <email@hidden>)
 >properties data size (From: Eric Gorouben <email@hidden>)

  • Prev by Date: Re: Debugging an AudioServer plugin
  • Next by Date: Re: properties data size
  • Previous by thread: properties data size
  • Next by thread: Re: properties data size
  • Index(es):
    • Date
    • Thread