Re: setting property problem in audioengine
Re: setting property problem in audioengine
- Subject: Re: setting property problem in audioengine
- From: Shaun Wexler <email@hidden>
- Date: Wed, 4 Oct 2006 20:26:32 -0700
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);
Am I doing something wrong here?
I'm not sure, but IORegistryEntry.h declares a different argument
type for the value (unsigned long long), so try:
UInt64 n;
Maybe the compiler isn't promoting it right, and you're luckily
getting a loop index passed for one of the two registers for the 64-
bit value?
--
Shaun Wexler
MacFOH
http://www.macfoh.com
_______________________________________________
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