• 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
Assert Failure for AUListenerAddParameter
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Assert Failure for AUListenerAddParameter


  • Subject: Assert Failure for AUListenerAddParameter
  • From: tobias assmann <email@hidden>
  • Date: Tue, 30 Dec 2008 19:39:11 +0000 (GMT)

Hello all,

having thought that my plugin is nearly ready I am now facing a problem I can not really handle. My plugin loads well and dos it`s job exept minor gui bugs. Everything is fine. Until I remove the plugin from the track it is used and try to load it again. No matter if I use Logic or Garageband. After the plugin was loaded, active and removed I am not able to load it again, because of a failing assertion when adding a parameter to a listner in my gui:

    // Create a listner
    NSAssert (    AUListenerCreate(ParameterListenerDispatcher, self,
                                    CFRunLoopGetCurrent(), kCFRunLoopDefaultMode, 0,
                                    &mParameterListener    ) == noErr,
                @"[MyVeryOwn_CocoaView _addListeners] AUListenerCreate()");

    // Add all parameters
    int i;
    for (i = 0; i < kNumberOfParameters; ++i) {
        parameter[i].mAudioUnit = mAU;
        NSAssert (    AUListenerAddParameter(mParameterListener, NULL, &parameter[i]) == noErr,
                    @"[MyVeryOwn_CocoaView _addListeners] AUListenerAddParameter()");                     // THIS FAILS !!!!!
    }

The returning code of AUListenerAddParameter is 4294956418 wich says nothing to me :(

Before reloading the plugin the listner is removed correctly:

    // Remove all parameters
    int i;
    for (i = 0; i < kNumberOfParameters; ++i) {
        NSAssert (    AUListenerRemoveParameter(mParameterListener, NULL, &parameter[i]) == noErr,
                    @"[MyVeryOwn_CocoaView _removeListeners] AUListenerRemoveParameter()");         // THIS FAILS IF I IGNORE THE FAILURE ABOVE
    }
   
    // dispose listner
    NSAssert (    AUListenerDispose(mParameterListener) == noErr,
                @"[MyVeryOwn_CocoaView _removeListeners] AUListenerDispose()");

Closing the project and reopening it helps nothing. 
I can have nothing to do with my AudioUnitParameter enumeration, cause it works once. If anyone could tell me, how I can get more information about whats going wrong inside of AUListenerAddParameter, that would be great.

I am not very experiend in using Xcode and so on, so maybe there some more thing I can do to examine this?

TIA

Tobias

 _______________________________________________
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: Assert Failure for AUListenerAddParameter
      • From: "tahome izwah" <email@hidden>
  • Prev by Date: Re: Chunk size limits in AudioUnits?
  • Next by Date: Re: MP3 encoder is where?
  • Previous by thread: Re: Chunk size limits in AudioUnits?
  • Next by thread: Re: Assert Failure for AUListenerAddParameter
  • Index(es):
    • Date
    • Thread