• 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: setting property problem in audioengine
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >setting property problem in audioengine (From: Brett George <email@hidden>)

  • Prev by Date: Re: playing a pcm buffer
  • Next by Date: Re: Finding the duration of a MidiFile
  • Previous by thread: Re: setting property problem in audioengine
  • Next by thread: playing a pcm buffer
  • Index(es):
    • Date
    • Thread