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

Apple example compilation error


  • Subject: Apple example compilation error
  • From: "sam aspin" <email@hidden>
  • Date: Fri, 17 Feb 2006 15:42:10 +0000

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)
{
***************************************************************

from what I can tell this method expects to receive an array of AudioStreamBasicDescription as its final argument but it's the fact that it's an array that is tripping it up. When the brackets are removed this line compiles, what could that mean?
AudioStreamBasicDescription appears to be defined in CAStreamBasicDescription.h which as far as i can tell isnt included in the include statements so I've copied the headers and .cpp files into my project directory and added #include "CAStreamBasicDescription.h" and also added the directory to the header search location in XCode.


is there a fool-proof way to ensure the header files are being located?

any help would be greatly appreciated, based on my past C++ / xcode experience this could be something very simple/obvious!

thanks
Sam Aspin


_______________________________________________ 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
  • Follow-Ups:
    • Re: Apple example compilation error
      • From: Doug Wyatt <email@hidden>
  • Prev by Date: Re: (no subject)
  • Next by Date: Re: Apple example compilation error
  • Previous by thread: Re: (no subject)
  • Next by thread: Re: Apple example compilation error
  • Index(es):
    • Date
    • Thread