Question about error code returned by AUGraphStart
Question about error code returned by AUGraphStart
- Subject: Question about error code returned by AUGraphStart
- From: "Brant Sears" <email@hidden>
- Date: Thu, 23 Mar 2006 14:12:22 -0500
- Thread-topic: Question about error code returned by AUGraphStart
Hi. I'm calling AUGraphStart and getting an error code of -10867. I have not been able to locate this error code in the header files.
What I'm trying to do is startup an AUGraph so that it will play sound that I have decoded using the freeware iLBC decoder. According to the iLBC specification the decoded audio is "16 bit uniform PCM sampled at 8 kHz".
I am setting up my AudioStreamBasicDescription record in the following manner:
AudioStreamBasicDescription mDesc;
memset(&mDesc, 0, sizeof(mDesc));
mDesc.mFormatID = kAudioFormatLinearPCM;
mDesc.mFormatFlags = kLinearPCMFormatFlagIsBigEndian;
mDesc.mSampleRate = 8000;
mDesc.mChannelsPerFrame = 1;
mDesc.mFramesPerPacket = 1;
mDesc.mBytesPerPacket = 2;
mDesc.mBytesPerFrame = 2;
mDesc.mBitsPerChannel = 16;
and then I eventually call AUGraphStart and get -10867.
Is the problem having to do with the BitsPerChannel being set wrong?
Thanks.
Brant Sears
<<winmail.dat>>
_______________________________________________
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