Re: Trouble Using Stereo Mixer
Re: Trouble Using Stereo Mixer
- Subject: Re: Trouble Using Stereo Mixer
- From: William Stewart <email@hidden>
- Date: Wed, 4 Jan 2006 11:33:25 -0800
You have this:
I get the following errors in my match audio formats routine:
- - - - - - - - - - - - - - - - - - - -
CoreAudio Error: -10868 -> /Users/steshaw/Desktop/Apple Audio/
PlayAudioFileLite Graph/main.cpp: 573
CoreAudio Error: -10868 -> /Users/steshaw/Desktop/Apple Audio/
PlayAudioFileLite Graph/main.cpp: 582
- - - - - - - - - - - - - - - - - - - -
And the following when I try and start the graph:
CoreAudio Error: -10868 -> /Users/steshaw/Desktop/Apple Audio/
PlayAudioFileLite Graph/main.cpp: 350
CoreAudio Error: -10863 -> /Users/steshaw/Desktop/Apple Audio/
PlayAudioFileLite Graph/main.cpp: 363
Can anyone help me out with what I'm doing wrong? I would greatly
appreciate it.
Thanks
Stephen
A connection between two audio units must share the same format. So,
if the format doesn't match (or is invalid for a particular AU) then
you will get errors trying to make the connection. One service that
is supported by the AU when you try to make a connection is that the
dest AU will attempt to set its input format to the format from the
source's output.
So, what is the problem? This should help:
kAudioUnitErr_FormatNotSupported = -10868,
The Stereo Mixer will take an input that is either mono or stereo,
linear pcm and Float 32. Float32 is the canonical format that all AUs
accept and many (most) will *only* accept samples that are Float32.
It will not accept inputs where the sample format is integer. The
Output Unit will accept integer sample formats (as it provides
conversion services).
Bill
On 04/01/2006, at 10:28 AM, Stephen Shaw wrote:
Sorry if this seems like a silly question, but I'm having
difficulty with the Stereo mixer Component. I built a test bed
using PlayAudioFileLite, and added an audio graph with a converter
and an output unit:
AudioConverter -> 0 -> Audio Output Unit
With the message pump hooked to the AudioConverter, when I start
the graph, everything works as expected.
However when I add a Stereo Mixer to the graph like so:
AudioConverter -> 0 -> Stereo Mixer -> 0 -> Audio Output Unit
Can anyone help me out with what I'm doing wrong? I would greatly
appreciate it.
Sorry for the brevity of the msg and the zip, I have to keep under
12kb for list.
Thanks
Stephen
The zip contains the listing for main.cpp, I've also included the
output from the run below that.
<msg.zip>
_______________________________________________
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
--
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