Mystery errror on AudioDeviceSetProperty
Mystery errror on AudioDeviceSetProperty
- Subject: Mystery errror on AudioDeviceSetProperty
- From: Louis Sinclair <email@hidden>
- Date: Fri, 07 Nov 2003 08:44:33 -0600
- Organization: Minnetonka Software, Inc.
Hello all,
I'm having a problem trying to set audio device parameters.
For instance, trying to set the sample rate of the default
output device to 44100 fails with a result of -536870206
( E00002C2 hex). I'm not able to find a reference to this
error code any where.
The specific code I'm using is:
OSStatus status = 0;
AudioStreamBasicDescription format;
memset(&format,0,sizeof(AudioStreamBasicDescription));
format.mSampleRate = 44100.0;
status = AudioDeviceGetPropertyInfo(defaultInputDevice,0,false,
kAudioDevicePropertyStreamFormat,
sizeof(AudioStreamBasicDescription),&format);
The mystery is that code that used to work no longer works. I
applied the automatic update to 10.3.8 recently, and am wondering
if that could have anything to do with it. Audio in general seems
to work ok on the system, so it seems it must be a coding issue,
other than the fact that it was working before.
I get the same error whether coding directly to Core Audio, or when
using the Core Audio version of PortAudio.
Has anyone experienced any thing like this?
Also, where's the best info on Core Audio programming. The best
thing I've found from Apple is the CoreAudio.pdf document.
Thanks in advance!
--
Louis
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.