AURemoteIO asbd format don't work with ExtAudioFile
AURemoteIO asbd format don't work with ExtAudioFile
- Subject: AURemoteIO asbd format don't work with ExtAudioFile
- From: Mark's Studio <email@hidden>
- Date: Mon, 19 Jan 2009 18:46:40 +0100
I am trying to create a ExtAudioFile with the format from the
AURemoteIO but i get fmt?
it's all based on the auriotouch sample.
UInt32 size = sizeof(hwSampleRate);
XThrowIfError
(AudioSessionGetProperty
(kAudioSessionProperty_CurrentHardwareSampleRate, &size,
&hwSampleRate), "couldn't get hw sample rate");
XThrowIfError(SetupRemoteIO( rioUnit, inputProc, thruFormat),
"couldn't setup remote i/o unit");
audioFormat.mSampleRate = hwSampleRate;
audioFormat.mFormatID = thruFormat.mFormatID;
audioFormat.mFormatFlags = thruFormat.mFormatFlags;
audioFormat.mFramesPerPacket = thruFormat.mFramesPerPacket;
audioFormat.mChannelsPerFrame = thruFormat.mChannelsPerFrame;
audioFormat.mBitsPerChannel = thruFormat.mBitsPerChannel;
audioFormat.mBytesPerPacket = thruFormat.mBytesPerPacket;
audioFormat.mBytesPerFrame = thruFormat.mBytesPerFrame;
OSStatus fileErr = ExtAudioFileCreateWithURL (
fileURL,
kAudioFileCAFType,
&audioFormat,
NULL,
kAudioFileFlags_EraseFile,
&audioFileID );
and this is the values of the asbd
.mSampleRate = 44100;
.mFormatID = lpcm;
.mFormatFlags = 0x2c2;
.mFramesPerPacket = 1;
.mChannelsPerFrame = 2;
.mBitsPerChannel = 32;
.mBytesPerPacket = 4;
.mBytesPerFrame = 4;
PS have anyone successfully changed the asbd format of the AURemoteIO ?
Peter Mark
Mark's Recording Studio A/S
Lundeskovsvej 3
2900 Hellerup
Denmark
Tel: +45 35366078
Fax: +45 35366038
Mobile: +45 20416018
www.marks-studio.dk
email@hidden
_______________________________________________
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