• 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: two or more data types in declaration of 'Process'
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: two or more data types in declaration of 'Process'


  • Subject: Re: two or more data types in declaration of 'Process'
  • From: email@hidden
  • Date: Fri, 01 Jul 2005 10:50:18 -0400

WOW. It wasn't a class-inheritance or a structural problem at all. I had just
forgotten to comment out an abandoned line of code above it.

Problem solved.

Quoting email@hidden:

Hi everyone -

I'm just getting into AudioUnits development. I've had experience programming in
C++, but more in an engineering context. Thus, I am relatively new to the OOP
style used in most commercial/consumer software.


In order to familiarize myself with AudioUnits, I've been going step-by-step
through Apple's multitap delay (MultitapAU) example, provided with the
Developer Tools package. My goal is to re-code the example into a fresh, blank
template derived from AUBase. It's been extremely educational so far, and I'm
getting close to a point where I can do an initial build in Xcode.


However, I have a problem:

When trying to compile, I get 4 seemingly related errors. They are:

Compiling DelayEffect.cpp (4 errors)
(1) error: two or more data types in declaration of `Process'
(2) error: prototype for `DelayEffect::DelayEffectKernel
DelayEffect::DelayEffectKernel::Process(const Float32*, Float32*, long unsigned
int, long unsigned int, bool&)' does not match any in class
`DelayEffect::DelayEffectKernel'
(3) error: candidate is: virtual void
DelayEffect::DelayEffectKernel::Process(const Float32*, Float32*, long unsigned
int, long unsigned int, bool&)
(4) error: `DelayEffect::DelayEffectKernel
DelayEffect::DelayEffectKernel::Process(const Float32*, Float32*, long unsigned
int, long unsigned int, bool&)' and `virtual void
DelayEffect::DelayEffectKernel::Process(const Float32*, Float32*, long unsigned
int, long unsigned int, bool&)' cannot be overloaded



I've spent over an hour meticulously comparing the declarations and definitions
of the Process() method in both Apple's example and my code. In both projects,
their heirarchy appears exactly similar: the respective .cpp files have
Process() declared as type 'virtual void' in the kernel derived from
AUKernelBase. Also, the .cpp files each have the method defined as type 'void'.
All mentions of Process() have identical parameters.


So why does Apple's code compile, but not mine? Both 'Process()' functions are
members of classes derived from AUEffectBase, both are declared identically,
and both are defined identically. Is this an inheritance issue, a
definition/declaration mismatch issue? I'm sure it's something simple that I'm
overlooking.


Thanks in advance for any help on this. It would really be appreciated!

-Hans Kuder
_______________________________________________
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





_______________________________________________
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


  • Prev by Date: 3dmixer pitch rate
  • Next by Date: AudioFile doesn't Honor AIFF block-align offset
  • Previous by thread: Re: 3dmixer pitch rate
  • Next by thread: AudioFile doesn't Honor AIFF block-align offset
  • Index(es):
    • Date
    • Thread