Yeah, you’re right, the memset() is unnecessary there. I used to use memset() a 
lot, Kevin used the {0}. Sooner or later we were bound to collide.

—Chris

> On Mar 1, 2015, at 8:27 PM, Patrick J. Collins 
> <[email protected]> wrote:
> 
> This "learning core audio" book I am reading shows:
> 
> AudioStreamBasicDescription recordFormat = {0};
> memset(&recordFormat, 0, sizeof(recordFormat));
> 
> Is the memset actually doing anything?  Isn't the line with the = {0},
> going to zero out all the data?  Should I be doing memset with all my
> asbd's?
> 
> Patrick J. Collins
> http://collinatorstudios.com
> 
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Coreaudio-api mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/coreaudio-api/invalidname%40gmail.com
> 
> This email sent to [email protected]


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/coreaudio-api/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to