Yes I can get the RemoteIO unit and it's working as an output in my code very nicely now. But does this work at as input as well? ie If it is at the beginning of the tree as opposed to the end, does it automatically grab the mic?
----- Original Message ----
From: Richard D <email@hidden>
To: Daniel Elliott <email@hidden>
Cc: Inca R <email@hidden>; email@hidden
Sent: Friday, 3 October, 2008 4:06:47 PM
Subject: Re: REMOTE IO Audio Unit
I wish someone could figure out my creating a working AudioConverter
for mp3 issue, but heres the code for get the
RemoteIO
desc.componentType = kAudioUnitType_Output;
desc.componentSubType = kAudioUnitSubType_RemoteIO;
desc.componentManufacturer = kAudioUnitManufacturer_Apple;
On 3 Oct 2008, at 16:04, Daniel Elliott wrote:
> Oh and iphone audiounits use 8.24 fixed point data format for
> processing. They don;t pass compressed data to each other. If you
> want to write that data to somewhere else you have to you the
> audiounit render function in your callback and copy the data
> somewhere else for compression somewhere else. or you could use the
> audio converter or extaudiofile(which has a built in audio converter
> object) in the render callback along with audiounitrender().
>
> ----- Original Message ----
> From: Daniel Elliott <
email@hidden>
> To: Inca R <
email@hidden>;
email@hidden> Sent: Friday, 3 October, 2008 3:58:20 PM
> Subject: Re: REMOTE IO Audio Unit
>
> How do we get the remoteIO as an input device?? I would be very
> grateful to see your code!
>
> ----- Original Message ----
> From: Inca R <
email@hidden>
> To:
email@hidden> Sent: Friday, 3 October, 2008 3:22:38 PM
> Subject: REMOTE IO
Audio Unit
>
> Hi;
> I manage to write some sample code that uses the remote io audio
> unit to capture voice samples from the mic.
> the problem I have now is that I need to control the size of the
> data I get in the render callback.
> I tried using the audio session service property
> kAudioSessionProperty_PreferredHardwareIOBufferDuration
> I set the property to be 0.02 seconds that in linear PCM 1 channel
> 16 bit is about 320 bytes but I'm getting
> 256 bytes. There is any other parameter/property I have to set ?
>
> Also I see that I'm getting errors when trying to set the Audio Unit
> Format to uLaw.
> Do I need to set any Audio Convert code here ? I thought it is
> enough to set the audioformat.
>
> Thanks
> Inca
>
>
> _______________________________________________
>
_______________________________________________
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