Unable to figure out Input Callback in cpp
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