@@ -42,7 +42,7 @@ @interface TIoTAVCaptionFLV ()<AVCaptureVideoDataOutputSampleBufferDelegate,AVCa
4242@property (nonatomic , strong ) AVCaptureSessionPreset resolutionRatioValue;
4343@property (nonatomic , strong ) TIoTPCMXEchoRecord *pcmRecord;
4444@property (nonatomic , assign ) BOOL isVadRecongize;
45- @property (nonatomic , strong ) dispatch_queue_t audioEncodeQueue;
45+ // @property (nonatomic, strong) dispatch_queue_t audioEncodeQueue;
4646@end
4747
4848@implementation TIoTAVCaptionFLV
@@ -58,7 +58,7 @@ -(instancetype) initWithAudioConfig:(TIoTAVCaptionFLVAudioType)audioSampleRate c
5858 _pitch = 0 ;
5959 _devicePosition = AVCaptureDevicePositionBack;
6060
61- _audioEncodeQueue = dispatch_queue_create (" com.audio.aacencode" , DISPATCH_QUEUE_SERIAL);
61+ // _audioEncodeQueue = dispatch_queue_create("com.audio.aacencode", DISPATCH_QUEUE_SERIAL);
6262 [self onInit ];
6363 }
6464 return self;
@@ -384,7 +384,7 @@ static void record_callback(uint8_t *buffer, int size, void *u)
384384{
385385// printf("pcm_size_callback: %d\n", size);
386386 TIoTAVCaptionFLV *vc = (__bridge TIoTAVCaptionFLV *)(u);
387- dispatch_async (vc.audioEncodeQueue , ^{
387+ // dispatch_async(vc.audioEncodeQueue, ^{
388388
389389 // 1. get origin pcm
390390 memset (pcm_buffer_origin, 0 , 640 );
@@ -429,7 +429,7 @@ static void record_callback(uint8_t *buffer, int size, void *u)
429429 NSData *data = [NSData dataWithBytes: pcm_buffer_result length: tmpChannelDataLen];
430430// [_fileHandle writeData:data];
431431 [vc.aacEncoder encodePCMData: data];
432- });
432+ // });
433433}
434434
435435
0 commit comments