• 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: Playing multiple sounds
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Playing multiple sounds


  • Subject: Re: Playing multiple sounds
  • From: William Stewart <email@hidden>
  • Date: Fri, 24 Aug 2007 18:27:38 -0700


On 24/08/2007, at 3:17 PM, Andreas Falkenhahn wrote:

On 24.08.2007 at 12:27 William Stewart wrote:

On 24/08/2007, at 7:23 AM, Andreas Falkenhahn wrote:

Some further questions:

1. According to Doug Wyatt from the Core Audio team at Apple
kAudioUnitProperty_SetInputCallback is (and I quote) " *very*
deprecated; only use
I can imagine is if you're only using the Apple AU's and must
support 10.1."

cf. source: http://lists.apple.com/archives/coreaudio-api/2004/Jul/
msg00091.html

Instead, I should use kAudioUnitProperty_SetRenderCallback. But I
can't use it
on my mixer! If I do something like

err = AudioUnitSetProperty(mixerAudioUnit,
kAudioUnitProperty_SetRenderCallback, kAudioUnitScope_Input, <bus>,
&callback, sizeof(AURenderCallback);

I get a kAudioUnitErr_InvalidProperty error. So what is it with
SetInputCallback
now? Should I use it or not? Is there a better way?

You must be opening the mixer as a version 1 AU. The component IDs for the stereo mixer are: type - aumx sub - smxr manu - appl

any AU of type 'aunt' is deprecated and should not be used.

Ok, thanks. I've now successfully installed a render callback on the mixer.
But now there's a new problem: When the render proc is called, ioData->mNumberBuffers
is 2 now, which makes AudioConverterFillComplexBuffer() exit with a paramErr
because it obviously expects only one buffer.


What am I doing wrong here?

The format is mismatched - the version 1 AUs (that you were using) were using interleaved floats. The format for v2 units use deinterleaved floats. Have a look at the SetCanonical call in CAStreamBasicDescription.cpp (in PublicUtility in /Developer/Examples/ CoreAudio)


Bill


Tks

Andreas


--
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
________________________________________________________________________ __


_______________________________________________
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: Playing multiple sounds
      • From: "Andreas Falkenhahn" <email@hidden>
References: 
 >Playing multiple sounds (From: "Andreas Falkenhahn" <email@hidden>)
 >Re: Playing multiple sounds (From: Mark Pauley <email@hidden>)
 >Re: Playing multiple sounds (From: Mark Pauley <email@hidden>)
 >Re: Playing multiple sounds (From: "Andreas Falkenhahn" <email@hidden>)
 >Re: Playing multiple sounds (From: Mark Pauley <email@hidden>)
 >Re: Playing multiple sounds (From: "Andreas Falkenhahn" <email@hidden>)
 >Re: Playing multiple sounds (From: "Andreas Falkenhahn" <email@hidden>)
 >Re: Playing multiple sounds (From: William Stewart <email@hidden>)
 >Re: Playing multiple sounds (From: "Andreas Falkenhahn" <email@hidden>)

  • Prev by Date: Re: Playing multiple sounds
  • Next by Date: Re: Playing multiple sounds
  • Previous by thread: Re: Playing multiple sounds
  • Next by thread: Re: Playing multiple sounds
  • Index(es):
    • Date
    • Thread