• 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: Does iOS audio input work with simulator?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Does iOS audio input work with simulator?


  • Subject: Re: Does iOS audio input work with simulator?
  • From: Beinan Li <email@hidden>
  • Date: Fri, 24 Jan 2014 10:41:39 -0500

Thank you ver much for your quick and thorough answer, Chris.

Next time I'll remember to post this as a separate thread.

Cheers,
Beinan


On Fri, Jan 24, 2014 at 10:32 AM, Chris Adamson <email@hidden> wrote:
Arguably the wrong place for this sidetrack, but here's my idle speculation:

* Core Audio works in the simulator because OS X has a substantially-similar (bordering on identical) framework.
* AV Foundation capture doesn't, because AV Foundation didn't exist on the Mac back when the Simulator was written back in the Leopard era.

I don't think this limitation reflects on the state of AV Foundation on iOS in any way; it's just a limitation of the Simulator. In fact, in the iPhone OS 4 era, AV Foundation apps that touched the capture APIs couldn't even compile for the Simulator. You'd have to #ifdef around it. At least now, all those calls just no-op in the Simulator.

Will Simulator ever support the capture APIs? Maybe they could use your Mac's iSight or other attached camera, but I'm not sure how useful this would end up being (if you're doing callbacks on an AVCaptureVideoDataOutput, getting the completely different aspect ratios, data formats, and unrealistic performance from the Simulator would be of pretty dubious value).

So I don't think I mind having AV Foundation capture being device-only… Apple likely has better use for engineering resources?

--Chris

On Jan 24, 2014, at 10:21 AM, Beinan Li <email@hidden> wrote:

... a question about Chris' answer:

"""
... the fact that AVFoundation capture doesn't work on the simulator.
"""

Is this a work-in-progress or a design decision?

I'm about to migrate my source code to support AVFoundation since it was said that the overlapping CoreAudio C API is going to retire to give way to AVFoundation. When something still does not work, maybe it's not the right time for migration yet? Apologies advance if I have any misunderstanding or this info can be found somewhere obvious.

Thanks,
Beinan



On Thu, Jan 23, 2014 at 5:02 PM, Chris Adamson <email@hidden> wrote:
Check your code. I just ran CH10_iOSPlayThrough (the one with the Dalek effect) from the book's download code on Xcode 5.0.1's iOS 7 simulators (32- and 64-bit) and it worked just fine. This was on a 2008 Mac Pro with a USB mic.

Also check your OS X System Prefs -> Sound -> Input to make sure you're using the mic you think you're using.

Confusion may be from the fact that AVFoundation capture doesn't work on the simulator. But Core Audio capture has always worked for me on the simulator. Except when my code has sucked. Which happens a lot.

--Chris

On Jan 23, 2014, at 4:34 PM, support (One Red Dog Media) <email@hidden> wrote:

> No I don't believe it does. I've always had to use the real device.
>
> Sent from my iPhone
>
>> On 24 Jan 2014, at 7:35 am, "Beinan Li" <email@hidden> wrote:
>>
>> Hi CoreAudio:
>>
>> I tried to reuse my remoteIO-based audio input code with iPhone or iPad simulator.
>> But seems that all I get from the input callback buffer was silence.
>> The exact same code works with a real device.
>> I also checked all the sound input code examples I can find including the book
>> Learning Core Audio: A Hands-On Guide to Audio Programming for Mac and iOS.
>> None of the examples work with the simulator.
>>
>> Am I missing something?
>>
>> Thanks,
>> Beinan
>> _______________________________________________
>> 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
>
> _______________________________________________
> 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




 _______________________________________________
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: Does iOS audio input work with simulator?
      • From: Beinan Li <email@hidden>
References: 
 >Does iOS audio input work with simulator? (From: Beinan Li <email@hidden>)
 >Re: Does iOS audio input work with simulator? (From: "support (One Red Dog Media)" <email@hidden>)
 >Re: Does iOS audio input work with simulator? (From: Chris Adamson <email@hidden>)
 >Re: Does iOS audio input work with simulator? (From: Beinan Li <email@hidden>)
 >Re: Does iOS audio input work with simulator? (From: Chris Adamson <email@hidden>)

  • Prev by Date: Re: Does iOS audio input work with simulator?
  • Next by Date: Re: Does iOS audio input work with simulator?
  • Previous by thread: Re: Does iOS audio input work with simulator?
  • Next by thread: Re: Does iOS audio input work with simulator?
  • Index(es):
    • Date
    • Thread