• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: one more RemoteIO question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: one more RemoteIO question


  • Subject: Re: one more RemoteIO question
  • From: Brad Garton <email@hidden>
  • Date: Sat, 17 Apr 2010 15:17:13 -0400

On Apr 17, 2010, at 1:47 PM, William Stewart wrote:

you also can't do I/O at different sample rates... so if you want 44.1k output, then make sure your category is a play (output only) category.

I've tried using both "kAudioSessionCategory_PlayAndRecord" and "kAudioSessionCategory_MediaPlayback" (the latter should be play/output-only, I think).  I think I'm missing something vital.  Sorry to be so dense...

I set up the RemoteIO AudioUnit, all is fine, then I set the properties:

#define kOutputBus 0
#define kInputBus 1

UInt32 style="color: #3900de">1;
AudioUnitSetProperty(rioUnit, kAudioOutputUnitProperty_EnableIO,
kAudioUnitScope_Output, kOutputBus, &one, sizeof(one));
AudioUnitSetProperty(rioUnit, kAudioUnitProperty_StreamFormat,
kAudioUnitScope_Input, kOutputBus, &audioFormat, sizeof(audioFormat));
AudioUnitSetProperty(rioUnit, kAudioUnitProperty_SetRenderCallback,
kAudioUnitScope_Input, kOutputBus, &inputProc, sizeof(inputProc));

 as per the "Configuring an Audio Unit" docs, etc.  Callback gets called, I fill the buffers, no sound.  BUT if I add this:

AudioUnitSetProperty(rioUnit, kAudioOutputUnitProperty_EnableIO,
kAudioUnitScope_Input, kInputBus, &one, sizeof(one));

sound happens!  Of course, by accessing the kInputBus, I'm now tied to the default input SR.  Is there something I'm not doing in setting up RemoteIO perhaps?

brad
http://music.columbia.edu/~brad
 _______________________________________________
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

  • Follow-Ups:
    • Re: one more RemoteIO question
      • From: William Stewart <email@hidden>
References: 
 >one more RemoteIO question (From: Brad Garton <email@hidden>)
 >Re: one more RemoteIO question (From: William Stewart <email@hidden>)
 >Re: one more RemoteIO question (From: Brad Garton <email@hidden>)
 >Re: one more RemoteIO question (From: Benjamin Faber <email@hidden>)
 >Re: one more RemoteIO question (From: William Stewart <email@hidden>)

  • Prev by Date: Re: one more RemoteIO question
  • Next by Date: Re: one more RemoteIO question
  • Previous by thread: Re: one more RemoteIO question
  • Next by thread: Re: one more RemoteIO question
  • Index(es):
    • Date
    • Thread