• 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
struct size?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

struct size?


  • Subject: struct size?
  • From: Erick Tejkowski <email@hidden>
  • Date: Sat, 11 Mar 2006 12:50:53 -0600

Can anyone help me figure out why SizeOf reports that the size of a ScheduledAudioFileRegion struct is 96 bytes, but when I add the numbers up in my head, it comes to 92? I've appended sizes to each struct member below to show you how I came up with 92. Any ideas what I am calculating wrong?

Thanks, Erick

  struct ScheduledAudioFileRegion {
	  AudioTimeStamp   mTimeStamp;//64
	  ScheduledAudioFileRegionCompletionProc  mCompletionProc; // 4
	  void *     mCompletionProcUserData;//4
	  struct OpaqueAudioFileID *mAudioFile; //4
	  UInt32     mLoopCount; //4
	  SInt64     mStartFrame; //8
	  UInt32     mFramesToPlay; //4
  };
_______________________________________________
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: struct size?
      • From: philippe wicker <email@hidden>
  • Prev by Date: Re: (no subject)
  • Next by Date: Re: struct size?
  • Previous by thread: ANN: Sycamore Framework for audio in ObjC (v.0.5)
  • Next by thread: Re: struct size?
  • Index(es):
    • Date
    • Thread