• 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: Stuttering in audio with VPIO
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Stuttering in audio with VPIO


  • Subject: Re: Stuttering in audio with VPIO
  • From: Lucas Ives <email@hidden>
  • Date: Mon, 14 Jan 2013 16:36:02 -0800


It's almost impossible to know without seeing your specific situation, but the usual suspects are always a good place to start:

  - avoid memory allocation in the callback
  - avoid objective-c calls in the callback, especially in inner loops
  - avoid IO operations (reading/writing to/from disk, logging via printf or NSLog)
  - prefer block operations (memcpy, memset) where possible



-l


On Mon, Jan 14, 2013 at 3:23 PM, Pier <email@hidden> wrote:
Thanks Lucas, 

I was wondering if anyone here had experience dealing with this - are there any things I can try to make the VPIO not stutter using >64 quality? 

Pier.



On 15 Jan, 2013, at 5:59 AM, Lucas Ives <email@hidden> wrote:


I believe there are (well, were) only two algorithms for echo cancellation quality -- 0-63 was the first, and 64-127 was the more expensive 2nd.  It sounds like you have enough other stuff going  on in your app and audio callback to bring the processing to its knees.

But ... that setting is deprecated going forward .. meaning in a future version of iOS your app will *always* stutter on the iPhone 4.  That being the case, I'd leave it set to >64 and bring down your processing load by looking for low-hanging fruit in the audio callback.

-l


On Mon, Jan 14, 2013 at 9:44 AM, Pier <email@hidden> wrote:
Hi, 

I'm recording several audio tracks with the VPIO input. 
I've been experimenting and realised that the sound is significantly better when I set the kAUVoiceIOProperty_VoiceProcessingQuality above 63. On the iPhone4 it also resolves my issue of the volume not being loud enough. However, when I set the quality above 63, I hear stutters in my playback. I'm running using AUGraph : 

Source : VPIO in 
MultiChannelMixer (4 inputs) -> VPIO out

    // Quality
    UInt32 flagnvaw = 65; // 63 is the best it will go without stutter
    status = AudioUnitSetProperty(_remoteIOUnit,
                                  kAUVoiceIOProperty_VoiceProcessingQuality,
                                  kAudioUnitScope_Output,
                                  0,
                                  &flagnvaw,
                                  sizeof(flagnvaw));


With one track it's ok, however when I record the 2nd track it stutters and the playback is distorted. 

Anyone here has experience with this? How did you resolve the issue? 

Thank you. 

Pier.




 _______________________________________________
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

References: 
 >Stuttering in audio with VPIO (From: Pier <email@hidden>)
 >Re: Stuttering in audio with VPIO (From: Lucas Ives <email@hidden>)
 >Re: Stuttering in audio with VPIO (From: Pier <email@hidden>)

  • Prev by Date: Re: Stuttering in audio with VPIO
  • Next by Date: RE: Automation in audio unit not working
  • Previous by thread: Re: Stuttering in audio with VPIO
  • Next by thread: Core Audio maximum clock error
  • Index(es):
    • Date
    • Thread