• 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
Unable to figure out Input Callback in cpp
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Unable to figure out Input Callback in cpp


  • Subject: Unable to figure out Input Callback in cpp
  • From: Jimmy Johnson <email@hidden>
  • Date: Thu, 21 Dec 2006 12:42:01 -0800 (PST)

This might be more of a C++ question than a CoreAudio question, but it does have to do with core audio. I am trying to rewrite a Core AUdio program using C++ that I had working in C.

I am having the following problem when trying to setup the Callback procedure:

error: argument of type 'OSStatus (ChromaTunerAudio::)(void*, AudioUnitRenderActionFlags*, const AudioTimeStamp*, UInt32, UInt32, AudioBufferList*)' does not match 'OSStatus (*)(void*, AudioUnitRenderActionFlags*, const AudioTimeStamp*, UInt32, UInt32, AudioBufferList*)'

As you can see it is complaining because my scope does not match the defined scope of the callback.

This might be really easy but I am stumped. How do I get around this and keep my callback procedure in its own class definition?

Thanks!
James
 _______________________________________________
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: Unable to figure out Input Callback in cpp
      • From: "B.J. Buchalter" <email@hidden>
  • Prev by Date: Re: Purpose of kAudioDevicePropertyChannelNumberNameCFString
  • Next by Date: Re: Unable to figure out Input Callback in cpp
  • Previous by thread: record and play program
  • Next by thread: Re: Unable to figure out Input Callback in cpp
  • Index(es):
    • Date
    • Thread