Re: [NEWBIE] Old thread and Vu-Meters
Re: [NEWBIE] Old thread and Vu-Meters
- Subject: Re: [NEWBIE] Old thread and Vu-Meters
- From: David Duncan <email@hidden>
- Date: Tue, 9 Aug 2005 14:12:00 -0400
On Aug 9, 2005, at 01:59 PM, Sanri Parov wrote:
Wonderful ,I understood quite correctly.
Now it's the tricky part for a newbie like me:how can I tell
memcpy (aSample, buffer->mData, SOUND_PRINTOUT_SIZE);
to copy the right things? Have I to use some sizeof()?
Thanks again for your patience and kindness.
Frankly, you can't with just what you see here. Fortunately, Core
Audio's AudioBuffer tells you the size of the buffer it is pointing
at, and AudioBufferList tells you how many buffers it contains. (see
CoreAudio/CoreAudioTypes.h for the definitions of these structs).
Combined with an AudioStreamBasicDescription gives you a more
complete picture of the what the data in an AudioBuffer looks like.
--
Reality is what, when you stop believing in it, doesn't go away.
Failure is not an option. It is a privilege reserved for those who try.
David Duncan
_______________________________________________
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