• 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: SDK's IsStreamFormatWritable bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SDK's IsStreamFormatWritable bug?


  • Subject: Re: SDK's IsStreamFormatWritable bug?
  • From: Pavol Markovic <email@hidden>
  • Date: Tue, 13 Jan 2004 08:19:49 +0100

Thanks Bill,
yes it's development build, the deployment build leaves console clear.

Pavol Markovic

On Jan 13, 2004, at 12:41 AM, William Stewart wrote:

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.
_______________________________________________
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: 
 >SDK's IsStreamFormatWritable bug? (From: Pavol Markovic <email@hidden>)
 >Re: SDK's IsStreamFormatWritable bug? (From: William Stewart <email@hidden>)

  • Prev by Date: Re: What is preferred place to store non-AU patches?
  • Next by Date: Re: AUConverter crackling
  • Previous by thread: Re: SDK's IsStreamFormatWritable bug?
  • Next by thread: Connecting and AudioDevice to a Mixer
  • Index(es):
    • Date
    • Thread