• 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: Apple example compilation error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Apple example compilation error


  • Subject: Re: Apple example compilation error
  • From: Doug Wyatt <email@hidden>
  • Date: Fri, 17 Feb 2006 10:20:32 -0800

On Feb 17, 2006, at 7:42, sam aspin wrote:
Hi folks,

Im trying to compile some example code found here ( http:// developer.apple.com/technotes/tn2005/tn2113.html ) in order to create a new AudioBufferList.

The code im currently having probs with is under "Creating a AudioBufferList to use with AudioDeviceRead
Listing 2: Registering an AudioBufferList for AudioDeviceRead"


when i try to compile this code i get 7 errors, the first of which is

***************************************************************
error: expected ',' or '...' before 'inStreamFormats'
***************************************************************
and refers to the following

***************************************************************
AudioBufferList* MakeABLForAudioDeviceRead(AudioDeviceID inDevice,
UInt32 inNumberFramesToRead, UInt32 inNumberStreams,
AudioStreamBasicDescription[] inStreamFormats)
{

That's a syntax error in the example. It should read:

	AudioStreamBasicDescription inStreamFormats[]

Doug

--
Doug Wyatt
Core Audio, Apple

_______________________________________________
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: 
 >Apple example compilation error (From: "sam aspin" <email@hidden>)

  • Prev by Date: Apple example compilation error
  • Next by Date: Re: Suggestions for volume controls?
  • Previous by thread: Apple example compilation error
  • Next by thread: 3dmixer and openal
  • Index(es):
    • Date
    • Thread