Re: SDK's IsStreamFormatWritable bug?
Re: SDK's IsStreamFormatWritable bug?
- Subject: Re: SDK's IsStreamFormatWritable bug?
- From: William Stewart <email@hidden>
- Date: Mon, 12 Jan 2004 15:41:59 -0800
You must be doing a development not a release build - so the validation
tool is correctly seeing if you have input, the answer I guess is no,
and the dev build style is correctly telling you that an assert
detected a failure. Make sure the DEBUG build environment variable
isn't defined.
As long as the error is returned (which I think it is) and your AU is
doing the right thing, then all you're seeing is some debug code firing
Bill
On 12/01/2004, at 12:53 AM, Pavol Markovic wrote:
When I pass MusicDevice plugin through AUValidation, I get
AssertMacros: , kAudioUnitErr_InvalidElement file:
/Volumes/Devel/Audio/LinPlug/RMIV/Source/ausdk/AUPublic/AUBase/
AUScopeElement.h, line: 379
In my opinion this is either AU SDK or AUValidation bug.
Our MusicDevice does not support InputScope - zero value for input bus
count is passed in constructor. I think developers should override
StreamFormatWritable method (so it's done also here), but
IsStreamFormatWritable is called before and this throws exception if
host asks for value in InputScope.
Here is SDK's source part:
bool AUBase::IsStreamFormatWritable( AudioUnitScope scope,
AudioUnitElement element)
{
switch (scope) {
case kAudioUnitScope_Input:
{
AUInputElement *input = GetInput(element);
if (input->HasConnection()) return false; // can't write format
when input comes from connection
}
// ... fall ...
case kAudioUnitScope_Output:
return StreamFormatWritable(scope, element);
AUValidation tries various M-N input-output channel combinations - but
MusicDevices generally don't have input channels, should I catch the
exception somewhere (I don't know where, because I don't call
IsStreamFormatWritable) ?. Or is this host (AUValidation) duty to
catch it?
Thanks.
Pavol Markovic
_______________________________________________
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.