Re: AudioDeviceGetProperty error
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 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?
__________ 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