• 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: [NEWBIE] Old thread and Vu-Meters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >[NEWBIE] Old thread and Vu-Meters (From: Sanri Parov <email@hidden>)
 >Re: [NEWBIE] Old thread and Vu-Meters (From: kelly jacklin <email@hidden>)
 >Re: [NEWBIE] Old thread and Vu-Meters (From: Sanri Parov <email@hidden>)
 >Re: [NEWBIE] Old thread and Vu-Meters (From: David Duncan <email@hidden>)
 >Re: [NEWBIE] Old thread and Vu-Meters (From: Sanri Parov <email@hidden>)

  • Prev by Date: Re: [NEWBIE] Old thread and Vu-Meters
  • Next by Date: Re: HAL master instance not loading my driver
  • Previous by thread: Re: [NEWBIE] Old thread and Vu-Meters
  • Next by thread: iTunes stuttering, and don't shoot me--it might involve Core Audio
  • Index(es):
    • Date
    • Thread