• 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: AudioDeviceGetProperty error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AudioDeviceGetProperty error


  • Subject: Re: AudioDeviceGetProperty error
  • From: Mikael Hakman <email@hidden>
  • Date: Sat, 23 Aug 2008 16:32:45 +0200

560227702 = 0x21646576 = 0x21 0x64 0x65 0x76 = '!' 'd' 'e' 'v' = '!dev' = kAudioHardwareBadDeviceError

On a big endian system:

int errCode = 560227702;

printf ("%4.4s\n",(char *)&errCode);

On a little endian system:

int errCode = 560227702;

char * s = (char *) & errCode;

printf ("%c%c%c%c\n",s[3],s[2],s[1],s[0]);

On Aug 23, 2008, at 3:32 PM, Roland Silver wrote:

How do you get '!idev" from 560227702?
--RS

On 2008Aug23, at 08:37, Mikael Hakman wrote:

The error code is ‘!dev’ - I think AudioDeviceID should be set to actual device id, not to kAudioDeviceUnknown.
 
Regards/Mikael
 
On Saturday, August 23, 2008 1:10 PM, Roland Silver wrote:
AudioStreamBasicDescription deviceFormat;
UInt32 count = sizeof(deviceFormat);
AudioDeviceID device = kAudioDeviceUnknown;;
OSStatus err = AudioDeviceGetProperty(device, 0, false, kAudioDevicePropertyStreamFormat,  &count, &deviceFormat);

results in error 560227702

What's wrong?

Roland Silver
email@hidden





__________ NOD32 3381 (20080822) Information __________

Detta meddelande är genomsökt av NOD32 Antivirus.
http://www.nod32.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

  • Prev by Date: Re: AudioDeviceGetProperty error
  • Next by Date: Re: AudioDeviceGetProperty error
  • Previous by thread: Re: AudioDeviceGetProperty error
  • Next by thread: Re: AudioDeviceGetProperty error
  • Index(es):
    • Date
    • Thread