• 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: AUval version Failure and Render function return
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AUval version Failure and Render function return


  • Subject: Re: AUval version Failure and Render function return
  • From: William Stewart <email@hidden>
  • Date: Mon, 21 May 2007 14:11:46 -0700


On 10/05/2007, at 10:34 AM, Russell Edwards wrote:

Hello People

Having terrorized the Java list last year for a university project, my attention and project work has now moved onto AUs. I have just 3 weeks in which to implement a working convolution model of an organ swell box. As i need to take in external data about the "volume" i have chosen to implement the system as a midi effect rather than just an effect. I have managed to get what i hope is a limping MIDIEffect unit going and have hit a few problems.

The first is when running the compiled component through AUVal I get a version error:

ERROR: Component Version mismatch: Res Vers = 0x10000, Comp Vers = 0x1

You need to overide the Version method from AUComponentBase: virtual ComponentResult Version();

and have it return the same version number as you use when you construct your resource


has anyone got any idea what this might be caused by? As i haven't adjusted any of the version numbers, so they should just be default.




Secondly i have implemented my DSP in the Render function inherited from AUBase. From reading the rather sketchy API documentation i think this is the correct place. I am Using getInput()-> getbufferlist().mBuffers[].mdata to get the input buffer, and getoutput()-> getbufferlist().mBuffers[].mdata to get the buffer to put the processed data into. Then casting the void array returned by these 2 to a float32 array (i haven't bothered doing different formats yet).

ok - but unless you are just processing mono, make sure you look at the number of buffers in the buffer list, and then each AudioBuffer's mData field will be the data for that input or output channel



My main question here is what should the function return? The API says its ComponentResult but there is no explanation of what this is, and even more what it's value means. Can someone please help me here?

Its an error code, so the flow should be:

result = GetInput()
if (result) return result; // you weren't able to get the input data, so nothing you can do about it


// do your render work

return noErr;

Bill




Many Thanks in advance

Russell Edwards

University of York, 4th Year Electronics Undergraduate.
 _______________________________________________
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

--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________ __
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________ __


_______________________________________________
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


References: 
 >AUval version Failure and Render function return (From: Russell Edwards <email@hidden>)

  • Prev by Date: How to pull audio from an AUGraph for bounces?
  • Next by Date: Re: Audio Unit render problem
  • Previous by thread: AUval version Failure and Render function return
  • Next by thread: usb mic problem
  • Index(es):
    • Date
    • Thread