• 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: AURender Call back function
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AURender Call back function


  • Subject: Re: AURender Call back function
  • From: Gabriele Palmas <email@hidden>
  • Date: Wed, 25 Feb 2009 23:41:37 -0500

Hi,
I did that, I figure that maybe the C++ was the problem.
However I still have this errors:
Building target “MyPlayer” of project “MyPlayer” with configuration “Debug” — (3 errors)
        cd /Users/gabry/Documents/Apps/MyPlayer
    setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.0 -x objective-c++ -arch i386 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -Wreturn-type -Wunused-variable -D__IPHONE_OS_VERSION_MIN_REQUIRED=20000 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.2.1.sdk -fvisibility=hidden -fvisibility-inlines-hidden -mmacosx-version-min=10.5 -gdwarf-2 -iquote /Users/gabry/Documents/Apps/MyPlayer/build/MyPlayer.build/Debug-iphonesimulator/MyPlayer.build/MyPlayer-generated-files.hmap -I/Users/gabry/Documents/Apps/MyPlayer/build/MyPlayer.build/Debug-iphonesimulator/MyPlayer.build/MyPlayer-own-target-headers.hmap -I/Users/gabry/Documents/Apps/MyPlayer/build/MyPlayer.build/Debug-iphonesimulator/MyPlayer.build/MyPlayer-all-target-headers.hmap -iquote /Users/gabry/Documents/Apps/MyPlayer/build/MyPlayer.build/Debug-iphonesimulator/MyPlayer.build/MyPlayer-project-headers.hmap -F/Users/gabry/Documents/Apps/MyPlayer/build/Debug-iphonesimulator -iquote/Developer/Examples/CoreAudio/PublicUtility -iquote/Developer/Examples/CoreAudio/PublicUtility/AudioFile-new -iquote/Developer/Examples/CoreAudio/PublicUtility/AudioFilePlayImpl -iquote/Developer/Examples/CoreAudio/PublicUtility/Cocoa -iquote/Developer/Examples/CoreAudio/PublicUtility/Latency-Panther -iquote/Developer/Examples/CoreAudio/PublicUtility/AudioFile-new -I/Users/gabry/Documents/Apps/MyPlayer/build/Debug-iphonesimulator/include -I/Developer/Examples/CoreAudio/PublicUtility/AudioFilePlayImpl -I/Developer/Examples/CoreAudio/PublicUtility/AudioFile-new -I/Developer/Examples/CoreAudio/PublicUtility -I/Developer/Examples/CoreAudio/PublicUtility/AudioFile-new -I/Developer/Examples/CoreAudio/PublicUtility/AudioFilePlayImpl -I/Developer/Examples/CoreAudio/PublicUtility/Cocoa -I/Developer/Examples/CoreAudio/PublicUtility/Latency-Panther -I/Users/gabry/Documents/Apps/MyPlayer/build/MyPlayer.build/Debug-iphonesimulator/MyPlayer.build/DerivedSources -include /var/folders/k3/k3LUUNVTHTeWWZS65RE6W++++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/MyPlayer_Prefix-anflisneamfeiaatmwsllpgqplnr/MyPlayer_Prefix.pch -c /Users/gabry/Documents/Apps/MyPlayer/Classes/MyPlayerAppDelegate.mm -o /Users/gabry/Documents/Apps/MyPlayer/build/MyPlayer.build/Debug-iphonesimulator/MyPlayer.build/Objects-normal/i386/MyPlayerAppDelegate.o
/Developer/Examples/CoreAudio/PublicUtility/AudioFile-new/CAAudioFile.h: In member function 'void CAAudioFile::Open(const FSRef&, UInt32)':
/Developer/Examples/CoreAudio/PublicUtility/AudioFile-new/CAAudioFile.h:97: error: 'AudioFileOpen' was not declared in this scope
/Developer/Examples/CoreAudio/PublicUtility/AudioFile-new/CAAudioFile.h: In member function 'void CAAudioFile::Open(const FSRef&)':
/Developer/Examples/CoreAudio/PublicUtility/AudioFile-new/CAAudioFile.h:114: error: 'ExtAudioFileOpen' was not declared in this scope
/Developer/Examples/CoreAudio/PublicUtility/AudioFile-new/CAAudioFile.h: In member function 'void CAAudioFile::CreateNew(const FSRef&, const __CFString*, AudioFileTypeID, const AudioStreamBasicDescription&, const AudioChannelLayout*)':
/Developer/Examples/CoreAudio/PublicUtility/AudioFile-new/CAAudioFile.h:118: error: 'ExtAudioFileCreateNew' was not declared in this scope
        /Developer/Examples/CoreAudio/PublicUtility/AudioFile-new/CAAudioFile.h:97: error: 'AudioFileOpen' was not declared in this scope
        /Developer/Examples/CoreAudio/PublicUtility/AudioFile-new/CAAudioFile.h:114: error: 'ExtAudioFileOpen' was not declared in this scope
        /Developer/Examples/CoreAudio/PublicUtility/AudioFile-new/CAAudioFile.h:118: error: 'ExtAudioFileCreateNew' was not declared in this scope
Build failed (3 errors)

Now I checked AudioFileOpen, ExtAudioFileOpen and ExtAudioFileCreateNew are part of the AudioTollBox Framework that is included in my app.
I don't know what is worng now. It should read this classes with no problem.
Any idea?
Thanks.

Gab

On Wed, Feb 25, 2009 at 11:21 PM, Jens Alfke <email@hidden> wrote:

On Feb 25, 2009, at 6:04 PM, Gabriele Palmas wrote:

In file included from /Developer/Examples/CoreAudio/PublicUtility/AudioFile-new/CABufferQueue.h:44,
                from /Developer/Examples/CoreAudio/PublicUtility/AudioFile-new/CAAudioFileStreamer.h:44,
                from /Users/gabry/Documents/Apps/MyPlayer/Classes/MyPlayerAppDelegate.h:16,
                from /Users/gabry/Documents/Apps/MyPlayer/Classes/MyPlayerAppDelegate.m:9:
/Developer/Examples/CoreAudio/PublicUtility/CAPThread.h:71: error: syntax error before 'CAPThread'

You're not compiling with C++ enabled, so the compiler barfs on C++ syntax.
The easiest way to fix this is to change the suffix of your source file from ".m" to ".mm".

—Jens

 _______________________________________________
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: AURender Call back function
      • From: Jens Alfke <email@hidden>
References: 
 >AURender Call back function (From: Gabriele Palmas <email@hidden>)
 >Re: AURender Call back function (From: Jens Alfke <email@hidden>)
 >Re: AURender Call back function (From: Gabriele Palmas <email@hidden>)
 >Re: AURender Call back function (From: Gabriele Palmas <email@hidden>)
 >Re: AURender Call back function (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: AURender Call back function
  • Next by Date: Re: Reading packets from an audio file
  • Previous by thread: Re: AURender Call back function
  • Next by thread: Re: AURender Call back function
  • Index(es):
    • Date
    • Thread