• 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: Synthesis AudioUnit & Dave
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Synthesis AudioUnit & Dave


  • Subject: Re: Synthesis AudioUnit & Dave
  • From: Bill Stewart <email@hidden>
  • Date: Tue, 16 Apr 2002 12:04:02 -0700

on 16/4/02 5:19 AM, Jaeho Chang wrote:

> I just built a simple sine wave generator AudioUnit.
> This is based on "SampleAudioUnits" project found
> in AudioUnitSDK-011030.
>
> I'm wondering two things.
>
> 1. What is the correct sub-type for this kind of AU
> (not an effector, but a synthesizer)?
> kAudioUnitSubType_MusicDevice ?
> Or, can I define one myself?

A sub-type of musd tells the system that you are implementing the additional
component selectors of the MusicDevice component.

> 2. Dave recognizes my AU, but there's no sound.
> I create my sine wave AU and DefaultOutputUnit,
> connect them, initialize, and start... but no sound.
> Is it due to the incorrect sub-type of my AU?
> I tried with kAudioUnitSubType_MusicDevice
> and kAudioUnitSubType_Effect, but neither is working.

Its not really an effect component either - that has the implication that
you're going to actually process the incoming buffer.

For the short term I'd make up a subtype that was neutral.

We're doing some pretty extensive work in this area at the moment, a topic
which I'll have more to say about shortly

Bill

> If both questions does not matter for an AU to work properly,
> please check this processing code :
>
> void SampleEffectUnit::SampleEffectKernel::Process(
> const Float32 *inSourceP,
> Float32 *inDestP,
> UInt32 inFramesToProcess,
> UInt32 inNumChannels )
> {
> UInt32 nSampleFrames = inFramesToProcess;
> Float32 *destP = inDestP;
>
> while (nSampleFrames-- > 0) {
> Float32 outputSample = sin(phase);
> phase += 0.06; // about 420Hz
> *destP = outputSample;
> destP += inNumChannels;
> }
> }
>
> Joe.
> _______________________________________________
> coreaudio-api mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/coreaudio-api
> Do not post admin requests to the list. They will be ignored.


mailto:email@hidden
tel: +1 408 974 4056
__________________________________________________________________________
"Thousands of years ago, cats were worshipped as gods. We have never
forgotten this."
__________________________________________________________________________
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.

References: 
 >Synthesis AudioUnit & Dave (From: Jaeho Chang <email@hidden>)

  • Prev by Date: Re: Calling Java code from an audio or Midi callback (Bill Stewart)
  • Next by Date: Re: kext
  • Previous by thread: Synthesis AudioUnit & Dave
  • Next by thread: clipping problems
  • Index(es):
    • Date
    • Thread