Re: Audio Unit synth how-to
Re: Audio Unit synth how-to
- Subject: Re: Audio Unit synth how-to
- From: h <email@hidden>
- Date: Wed, 11 May 2005 05:42:28 -0700 (PDT)
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
Sorry to ask so many basic questions, but I have worked it out for
myself.
1. To get Shark, download CHUD Tools from apple developer connection.
2. Go to Project Info and turn on the "Generate Profiling Code" option.
3. Ctrl-click on 'Executables' in the project window, choose add -> new
custom executable.
4. Put in the details of your chosen host app here. I used Logic
Express.
5. Click on Debug -> Launch Using Performance Tool -> Shark
6. Optionally, start your plugin working, then click start in the shark
window.
To debug, click on Debug -> Debug Executable.
If anyone has any more tips in this field, please let me know.
Thanks,
Hamish
--- h <email@hidden> wrote:
> Thanks for bearing with me. Sorry for being off-topic. I have found
> out
> about the shark profiler, and I have made a simple hello-word
> application. But in my 'Debug - Launch Using Performance Tool' the
> 'Shark' menu item is disabled. And I can't find it anywhere on my
> hard
> drive. Is there another package I need to download.
> Also, is there a way to start logic express and only profile my
> plugin
> within it?
>
> Cheers
> Hamish
>
>
> --- William Stewart <email@hidden> wrote:
> >
> > You have to understand that the host basically controls your
> > behaviour. It calls Render, not you. The host may "take you
> offline"
> >
> > in this case - ie. not call your Render call, or it may not - and
> > just pump silence through. You don't know (nor do you care) _ you
> > just have to respond to what the host asks you to do.
> >
> > Have a look through the documentation we do have:
> >
> > /Developer/Examples/CoreAudio/Documentation
> >
> > There's some comments there about the general rendering process
> from
> >
> > the host's perspective, and how AudioUnitReset ties into that
> process
> >
> > as well.
> >
> > > Never mind, I found the answer - set the
> > > kAudioUnitRenderAction_OutputIsSilence flag.
> >
> > Not really. You set this flag ***whenever*** you are returning a
> > buffer that is completely silent.
> >
> > This need have nothing to do with whether the user has "hit the
> stop
> >
> > button" or not. For instance, a synth maybe silent for a large part
>
> > of a song because there's no notes being played by it - but the
> song
> >
> > is still playing.
> >
> > Bill
> >
> > On 10/05/2005, at 9:47 AM, h wrote:
> >
> > > Here's an easy one: Once the user has hit the stop button, how do
> I
> > > signal to the audio unit host to stop calling my Render()
> function?
> > > If this is all documented somewhere, please let me know.
> > >
> > > Cheers,
> > > Hamish
> > >
> > > --- James McCartney <email@hidden> wrote:
> > >
> > >>
> > >> On May 8, 2005, at 2:59 PM, h wrote:
> > >>
> > >>
> > >>> I just want to check - given that I have to call GetParameter()
> > >>>
> > >> during
> > >>
> > >>> Render() - I take it that if the parameter cannot change
> partway
> > >>> through my Render() call? (Or else some kind of mutex would be
> > >>> needed)?
> > >>>
> > >>>
> > >>
> > >>
> > >> Since setting a 32 bit word (e.g. a 32 bit float) is atomic, no
> > mutex
> > >>
> > >> is needed.
> > >> The value of GetParameter could change midway. It isn't likely
> to
> > >> change on a single processor because of the priority of the
> render
> > >> thread, but it may happen on a dual processor.
> > >>
> > >> --- james mccartney --- apple coreaudio
> > >>
> > >>
> > >>
> > >>
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Tired of spam? Yahoo! Mail has the best spam protection around
> > > http://mail.yahoo.com
> > > _______________________________________________
> > > 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
> >
>
________________________________________________________________________
> >
> > __
> >
> >
>
>
>
> __________________________________
> Yahoo! Mail Mobile
> Take Yahoo! Mail with you! Check email on your mobile phone.
> http://mobile.yahoo.com/learn/mail
> _______________________________________________
> 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
>
Discover Yahoo!
Stay in touch with email, IM, photo sharing and more. Check it out!
http://discover.yahoo.com/stayintouch.html
_______________________________________________
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