ios - AvAudioEngine tapping input node not working on iPhone 4s -


i'm using avaudioengine record audio on ios devices. i'm using following code start tapping input node

self.forcedmonoaudioformat = [[avaudioformat alloc] initwithcommonformat:avaudiopcmformatint16 samplerate:44100 channels:1 interleaved:no];     [self.mmicrophonenode installtaponbus:0 buffersize:1024 format:self.forcedmonoaudioformat  block:^(avaudiopcmbuffer *buffer, avaudiotime *when) {            if(isrecording) {                  .                  .                  ,             }    }];   

this code works fine on devices except on iphone 4s.

on iphone 4s block not called..

another interesting thing installtap line called twice:

  1. once on main thread
  2. on messengerqueue - @ point microphonenode nil

although there 1 place in code beling called.

this not happen on other type of device.

if has insight on behaviour more appreciate it!

thanks!


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

how to prompt save As Box in Excel Interlop c# MVC 4 -

xslt 1.0 - How to access or retrieve mets content of an item from another item? -