• 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
CocoaAUHost example crasches
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CocoaAUHost example crasches


  • Subject: CocoaAUHost example crasches
  • From: Roni Music <email@hidden>
  • Date: Sun, 28 Jan 2007 12:59:50 +0100

Hi,

I'm checking out the CocoaAUHost example and there seems to be bug in the AUGenericView class.

When loading certain plugins, it crasches when calling
[(AUGenericView *)AUView setShowsExpertParameters:YES];

It seems that
AUView = [[AUGenericView alloc] initWithAudioUnit:inAU];
returns before the view is setup and ready.

Letting the current thread "sleep" for a couple of milliseconds cures the problem
but is obviously just a hack.


	if (!wasAbleToLoadCustomView)
		{
		// [B] Otherwise show generic Cocoa view
		AUView = [[AUGenericView alloc] initWithAudioUnit:inAU];

usleep(100000);

	[(AUGenericView *)AUView setShowsExpertParameters:YES];
	    }

Is this a know problem or should I report it  to Apple Bug Reporter?

Or is there another solution?

Thanks,
Rolf

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: CocoaAUHost example crasches
      • From: William Stewart <email@hidden>
  • Prev by Date: AudioUnitSetProperty() returns -10879
  • Next by Date: Re: Macbook and Macbook por Audio loss when plugged into a specific usb port
  • Previous by thread: Re: AudioUnitSetProperty() returns -10879
  • Next by thread: Re: CocoaAUHost example crasches
  • Index(es):
    • Date
    • Thread