Re: auval problem for mono-only plug-in
Re: auval problem for mono-only plug-in
- Subject: Re: auval problem for mono-only plug-in
- From: William Stewart <email@hidden>
- Date: Fri, 20 Oct 2006 10:50:01 -0700
The default format of the AU (2 channels) does not match the reported
channel capabilities of the AU (1 chan in/1 chan out)
In your constructor you need to call:
CreateElements()
Then get and set the format for the input and output elements so that
they are one channel - the SetCanonical method in
CAStreamBasicDescription will help here. Something like the following
(pseudo code)
CAStreamBasicDescription desc = GetInput(0).GetFormat();
desc.SetCanonical (1, false); //false is for non-interleaved -
doesn't really matter for mono
GetInput(0).SetFormat(desc);
Bill
On 20/10/2006, at 9:24 AM, Howard Moon wrote:
Hi all,
I'm getting a failure of the mono version of a plug-in in auval.
I don't see why it's failing. I'm getting the following in auval:
VERIFYING DEFAULT SCOPE FORMATS:
Input Scope Bus Configuration:
Default Bus Count:1
Default Format: AudioStreamBasicDescription: 2 ch, 44100 Hz,
'lpcm' (0x0000002B) 32-bit big-endian float, deinterleaved
Output Scope Bus Configuration:
Default Bus Count:1
Default Format: AudioStreamBasicDescription: 2 ch, 44100 Hz,
'lpcm' (0x0000002B) 32-bit big-endian float, deinterleaved
HAM: SupportedNumChannels set is 1 in, 1 out
HAM: SupportedNumChannels returns 1
HAM: SupportedNumChannels set is 1 in, 1 out
HAM: SupportedNumChannels returns 1
HAM: SupportedNumChannels set is 1 in, 1 out
HAM: SupportedNumChannels returns 1
HAM: SupportedNumChannels set is 1 in, 1 out
HAM: SupportedNumChannels returns 1
ERROR: Default Format of unit does not match reported Channel
handling capabilities
* * FAIL
The "HAM" outputs are mine, and are coming from
SupportedNumChannels(). As the outputs show, I'm setting the
ChannelInfo to {1,1}, and returning 1 from the function. So it
should only be reporting 1 in, 1 out as the valid setup. Where
does the "Default Format" come from, if not there?
In the ValidFormat() function, I'm rejecting anything which
doesn't have 1 as the number of channels per frame(and the output
shows that, later, as well).
I'm confused as to what's telling auval that the "default format"
is 2 channels??? Anyone know where I should be looking?
Thanks,
Howard
_______________________________________________
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