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:
- once on main thread
- 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
Post a Comment