ios - No audio in video recording (using GPUImage) after initializing The Amazing Audio Engine -


i'm using 2 third party tools in project. 1 "the amazing audio engine". use audio filters. other gpuimage, or more specifically, gpuimagemoviewriter. when record videos, merge audio recording video. works fine. however, not use amazing audio engine , record normal video using gpuimagemoviewriter. problem is, after initializing amazing audio engine, video has fraction of second of audio @ beginning, , audio gone.

+ (staudiomanager *)sharedmanager {     static staudiomanager *manager = nil;      static dispatch_once_t oncetoken;     dispatch_once(&oncetoken, ^{         if (!manager)         {             manager = [[staudiomanager alloc] init];             manager.audiocontroller = [[aeaudiocontroller alloc] initwithaudiodescription:[aeaudiocontroller noninterleaved16bitstereoaudiodescription] inputenabled:yes];             manager.audiocontroller.preferredbufferduration = 0.005;             manager.audiocontroller.voiceprocessingenabled = yes;             manager.audiocontroller.usemeasurementmode = yes;         }     });     return manager; } 

something happening when taae initialized. suspicion it's having avaudiosession it's sharedinstance. amazing.

naturally when buckle , post question, find problem.

setting preferredbufferduration 0.005 bit excessive. removing line solved problem.

you can learn more preferredbufferduration here.


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -