Synthesis AudioUnit & Dave
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.