Re: setting property problem in audioengine
Re: setting property problem in audioengine
- Subject: Re: setting property problem in audioengine
- From: Jeff Moore <email@hidden>
- Date: Wed, 4 Oct 2006 17:49:36 -0700
It never hurts to file a bug.
On Oct 4, 2006, at 5:42 PM, Brett George wrote:
I was using IORegistryExplorer (v1.4.0 (57)).
You're right, ioreg(8) displays things correctly. Do I need to file
this
as a bug?
Brett.
Jeff Moore wrote:
How are you checking things?
I have noticed that the IORegistryExplorer app in
/Developer/Applications/Utilities occasionally doesn't display the
correct keys for some of my stuff. Often, it'll have the same name as
other keys. However, when I check the registry with my own code, I
see
the proper keys and values.
I also think that ioreg(8) will show things properly, too.
On Oct 4, 2006, at 4:00 PM, Brett George wrote:
I am seeing a strange problem when I try to set IORegistry
properties in
my audio driver.
If I have the following code:
UInt32 n;
n=0; setProperty("zero", n, sizeof(UInt32)*8);
n=2; setProperty("two", n, sizeof(UInt32)*8);
n=4; setProperty("four", n, sizeof(UInt32)*8);
n=8; setProperty("eight", n, sizeof(UInt32)*8);
n=16;setProperty("sixteen", n, sizeof(UInt32)*8);
n=32;setProperty("thirty_two", n, sizeof(UInt32)*8);
OR
UInt32 n;
OSNumber* nn;
nn=OSNumber::withNumber(n=0, sizeof(UInt32)*8);
setProperty("zero_OS",
nn);
nn=OSNumber::withNumber(n=2, sizeof(UInt32)*8);
setProperty("two_OS",
nn);
nn=OSNumber::withNumber(n=4, sizeof(UInt32)*8);
setProperty("four_OS",
nn);
nn=OSNumber::withNumber(n=8, sizeof(UInt32)*8);
setProperty("eight_OS", nn);
nn=OSNumber::withNumber(n=16, sizeof(UInt32)*8);
setProperty("sixteen_OS", nn);
nn=OSNumber::withNumber(n=32, sizeof(UInt32)*8);
setProperty("thirty_two_OS", nn);
The properties thirty_two, sixteen and eight is set correctly to
32, 16
and 8 respectively.
However, the property four is appearing with the key "2". the
property
"two" is appearing with the key "1" and the property "one" is
appearing
with the key "0". The zero property isn't appearing at all.
I'm not sure if there is some reason I can
--
Jeff Moore
Core Audio
Apple
_______________________________________________
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
--
Jeff Moore
Core Audio
Apple
_______________________________________________
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