Re: memset AND struct = {0}?
Re: memset AND struct = {0}?
- Subject: Re: memset AND struct = {0}?
- From: Ilya Konstantinov <email@hidden>
- Date: Mon, 02 Mar 2015 03:51:16 +0200
To me, this looks sloppy either way. I'd retrieve the current format with AudioUnitGetProperty, modify the members I care about, then set it with AudioUnitSetProperty (on same scope and element).
On Mar 2, 2015 3:39 AM, "Patrick J. Collins" <
email@hidden> 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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
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