Re: AURemoteIO 16 bit setup ?
Re: AURemoteIO 16 bit setup ?
- Subject: Re: AURemoteIO 16 bit setup ?
- From: William Stewart <email@hidden>
- Date: Mon, 2 Mar 2009 19:01:14 -0800
Hi Peter
Here's the basic strategy that you should follow:
So, what he should be doing is:
Set preferred sample rate - AudioSession
Make the session active - AudioSession
Get the current hardware sample rate - AudioSession
Set your client formats to match that sample rate
- that way it will match the h/w when you initialise the AU and start
it...
Bill
From: Mark's Studio <email@hidden>
Date: March 2, 2009 11:32:39 AM PST
To: William Stewart <email@hidden>
Cc: CoreAudio List <email@hidden>
Subject: Re: AURemoteIO 16 bit setup ?
I Just added this at the after the AudioOutputUnitStart()
XThrowIfError(AudioUnitGetProperty(rioUnit,
kAudioUnitProperty_StreamFormat, kAudioUnitScope_Input, 0,
&outFormat, &size), "couldn't get the remote I/O unit's output
client format");
outFormat.Print(outFormat);
XThrowIfError(AudioUnitGetProperty(rioUnit,
kAudioUnitProperty_StreamFormat, kAudioUnitScope_Input, 1,
&outFormat, &size), "couldn't get the remote I/O unit's output
client format");
outFormat.Print(outFormat);
XThrowIfError(AudioUnitGetProperty(rioUnit,
kAudioUnitProperty_StreamFormat, kAudioUnitScope_Output, 0,
&outFormat, &size), "couldn't get the remote I/O unit's output
client format");
outFormat.Print(outFormat);
XThrowIfError(AudioUnitGetProperty(rioUnit,
kAudioUnitProperty_StreamFormat, kAudioUnitScope_Output, 1,
&outFormat, &size), "couldn't get the remote I/O unit's output
client format");
outFormat.Print(outFormat);
and it logs this.
AudioStreamBasicDescription: 2 ch, 0 Hz, 'lpcm' (0x0000000C) 16-bit
little-endian signed integer
AudioStreamBasicDescription: 1 ch, 44100 Hz, 'lpcm' (0x0000000C) 16-
bit little-endian signed integer
AudioStreamBasicDescription: 2 ch, 44100 Hz, 'lpcm' (0x00000C2C)
8.24-bit little-endian signed integer, deinterleaved
AudioStreamBasicDescription: 2 ch, 0 Hz, 'lpcm' (0x0000000C) 16-bit
little-endian signed integer
but i am in doubt if it's the correct way ?
_______________________________________________
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