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

Synthesis AudioUnit & Dave


  • Subject: Synthesis AudioUnit & Dave
  • From: Jaeho Chang <email@hidden>
  • Date: Tue, 16 Apr 2002 21:19:27 +0900

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?

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.

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.

  • Follow-Ups:
    • Re: Synthesis AudioUnit & Dave
      • From: Bill Stewart <email@hidden>
  • Prev by Date: Re: Calling Java code from an audio or Midi callback (Bill Stewart)
  • Next by Date: Re: USB Audio kernel crash
  • Previous by thread: Re: Calling Java code from an audio or Midi callback (Bill Stewart)
  • Next by thread: Re: Synthesis AudioUnit & Dave
  • Index(es):
    • Date
    • Thread