• 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: AudioUnitKernal constructor called twice...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AudioUnitKernal constructor called twice...


  • Subject: Re: AudioUnitKernal constructor called twice...
  • From: tahome izwah <email@hidden>
  • Date: Wed, 10 Aug 2011 22:30:11 +0200

Last time I checked separate channels are using separate kernel
instances, in order to be able to distribute processing across
multiple cores.

HTH
--th

2011/8/9 email@hidden <email@hidden>:
> Hi
>
> Apologies if the answer to my query is obvious and google-able. I need this clarifying...
>
> I am making an audio unit called 'PlayerUnit'. I started with an audio unit template, followed the audio unit tutorial docs, and am adding code to the audio unit kernel constructor (in this case, PlayerUnit::PlayerUnitKernel::PlayerUnitKernel() ). When I run my project, xcode runs AU Lab, where PlayerUnit is instantiated as an effect on an 'AU Generator' channel. 'PlayerUnit' can then print values to the console so I can see what's going on.
>
> After using 'printf()' a fair bit in the kernel constructor, it has become apparent that this constructor is being called twice. I did not expect this. I thought there would be one audio unit kernel which processes interleaved audio data. Why is the constructor being called twice? Is it something I have done wrong, or is it related to my testing procedure? I am allocating memory in this constructor, and I don't want to do this twice!
>
> Thanks in advance.
>
> Simon  _______________________________________________
> 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
>
 _______________________________________________
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: AudioUnitKernal constructor called twice...
      • From: Brian Willoughby <email@hidden>
References: 
 >AudioUnitKernal constructor called twice... (From: "email@hidden" <email@hidden>)

  • Prev by Date: Re: Avoid insertion of FLLR chunk with ExtAudioFile wave files
  • Next by Date: Re: AudioUnitKernal constructor called twice...
  • Previous by thread: AudioUnitKernal constructor called twice...
  • Next by thread: Re: AudioUnitKernal constructor called twice...
  • Index(es):
    • Date
    • Thread