Re: AU diagnostics?
Re: AU diagnostics?
- Subject: Re: AU diagnostics?
- From: "Angus F. Hewlett" <email@hidden>
- Date: Fri, 21 Feb 2003 14:41:12 +0000
OK, I've tracked it down somewhat... the reason render() never gets called
is that AUGraphInitialize is failing with error code
-10868(kAudioUnitErr_FormatNotSupported). The AUGraph reports this error
after calling GetStreamFormat via the dispatcher.
My GetStreamFormat code (courtesy of Emagic) looks like this:-
//
-----------------------------------------------------------------------------
const CAStreamBasicDescription&
CVST2AUPlugin::GetStreamFormat(AudioUnitScope iScope, AudioUnitElement)
{
static CAStreamBasicDescription sDesc;
sDesc.mSampleRate = m_r64Samplerate;
sDesc.mFormatID = kAudioFormatLinearPCM;
sDesc.mFormatFlags = (kAudioFormatFlagsNativeFloatPacked |
kAudioFormatFlagIsNonInterleaved);
sDesc.mBytesPerPacket = m_lFramesPerSlice*4;
sDesc.mFramesPerPacket = m_lFramesPerSlice;
sDesc.mBytesPerFrame = 4;
sDesc.mChannelsPerFrame =
(iScope==kAudioUnitScope_Input?s_pcInfo.NumInputs():s_pcInfo.NumOutputs());
sDesc.mBitsPerChannel = 32;
return sDesc;
}
m_r64Samplerate is initialized to 44100, and m_lFramesPerSlice to 1024.
NumOutputs is 2, NumInputs most likely 0 (is that a problem? Should even a
synth AU declare 2 inputs?)
Regards,
Angus.
At 04:27 PM 2/20/2003 -0800, Bill Stewart wrote:
>
You can run AudioUnitHosting (in the CoreAudio SDK) in a mode where
>
synths will be loaded and MIDI input is received from the first MIDI
>
Endpoint in the system - its a bit "grungy" (technical term) - but it
>
does work and is a good way to validate synths
>
>
Bill
>
>
On Wednesday, February 19, 2003, at 06:04 AM, Angus F. Hewlett wrote:
>
>
> At 02:56 PM 2/19/2003 +0100, you wrote:
>
>> Hmm,
>
>>
>
>> my problems have been somewhat similar when I started...
>
>>
>
>> I can't recall the solution, but do you return true on
>
>> yoursynth::StreamFormatWritable(...) ?
>
>
>
> Yes.
>
>
>
>> Does Render() not even get called once?
>
>
>
> Not even once in Rax or Synthtest... but works fine in LAP6 prerelease.
>
>
>
>
>
> =======================================================
>
> Angus F. Hewlett, Technical Director
>
> FXpansion Audio UK Ltd - http://www.fxpansion.com
>
> =======================================================
>
> _______________________________________________
>
> 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
>
>
________________________________________________________________________
>
__
>
"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
>
________________________________________________________________________
>
__
>
_______________________________________________
>
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.
>
=======================================================
Angus F. Hewlett, Technical Director
FXpansion Audio UK Ltd -
http://www.fxpansion.com
=======================================================
_______________________________________________
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.