AURemoteIO 16 bit setup ?
AURemoteIO 16 bit setup ?
- Subject: AURemoteIO 16 bit setup ?
- From: Mark's Studio <email@hidden>
- Date: Mon, 2 Mar 2009 13:59:45 +0100
What is the proper way to setup the AURemoteIO for 16 bit, so there is
no conversion happening,
At the moment i use
AudioStreamBasicDescription: 2 ch, 0 Hz, 'lpcm' (0x00000C2C) 8.24-bit
little-endian signed integer, deinterleaved
AudioUnitGetProperty(inRemoteIOUnit,
kAudioUnitProperty_StreamFormat, kAudioUnitScope_Input, 0, &outFormat,
&size),;
// AudioUnitGetProperty(inRemoteIOUnit,
kAudioUnitProperty_StreamFormat, kAudioUnitScope_Output, 1,
&outFormat, &size);
outFormat.Print(outFormat);
// AudioUnitSetProperty(inRemoteIOUnit,
kAudioUnitProperty_StreamFormat, kAudioUnitScope_Input, 0, &outFormat,
sizeof(outFormat));
AudioUnitSetProperty(inRemoteIOUnit,
kAudioUnitProperty_StreamFormat, kAudioUnitScope_Output, 1,
&outFormat, sizeof(outFormat));
if i uncomment the two lines above i get
AudioStreamBasicDescription: 2 ch, 0 Hz, 'lpcm' (0x0000000C) 16-bit
little-endian signed integer
is that interleaved ? L1,R1,L2,R2....
Also if i create an extAudioFile with this format is that the same
interleaved format ?
audioFormat.mSampleRate = 44100.00;
audioFormat.mFormatID = kAudioFormatLinearPCM;
audioFormat.mFormatFlags = kAudioFormatFlagIsSignedInteger |
kAudioFormatFlagIsPacked;
audioFormat.mFramesPerPacket = 1;
audioFormat.mChannelsPerFrame = 2;
audioFormat.mBitsPerChannel = 16;
audioFormat.mBytesPerPacket = 4;
audioFormat.mBytesPerFrame = 4;
What i am trying to achive is this
AudioUnitRender()
DSP()
ExtAudioFileWrite()
Right now i can see there is a lot of time spend in functions
converting the format back and forth for no reason,
so i am looking for a way to setup so there is no need for any
conversion.
i will just adapt my DSP to handle the format.
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