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

renaming files in a directory using python or R -

c# - ajax - How to receive data both html and json from server? -