Re: Apple example compilation error
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