File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
LinkSDKDemo/Video/P2P/Controller Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -260,9 +260,9 @@ - (void)getDeviceStatusWithType:(NSString *)singleType qualityType:(NSString *)q
260260// [[TIoTCoreXP2PBridge sharedInstance] sendVoiceToServer:weakSelf.deviceName?:@"" channel:channel];
261261 [[TIoTSessionManager sharedInstance ] resumeRTCAudioSession ];
262262
263- static int tt_pitch = 2 ; // 2 萝莉 3大叔
263+ static int tt_pitch = 3 ; // 2 萝莉 3大叔
264264 TIoTCoreAudioConfig *audio_config = [TIoTCoreAudioConfig new ];
265- audio_config.refreshSession = NO ;
265+ audio_config.refreshSession = YES ;
266266 audio_config.sampleRate = TIoTAVCaptionFLVAudio_16;
267267 audio_config.channels = 1 ;
268268 audio_config.isEchoCancel = YES ;
Original file line number Diff line number Diff line change @@ -231,7 +231,13 @@ - (void) encodeSampleBuffer:(CMSampleBufferRef)sampleBuffer {
231231 });
232232}
233233
234-
234+ - (void )dealloc {
235+ ConverterContext *cxt = self->convertContext ;
236+ if (cxt && cxt->converter ) {
237+ AudioConverterDispose (cxt->converter );
238+ cxt->converter = NULL ;
239+ }
240+ }
235241#pragma mark - HEADER
236242/* *
237243 * Add ADTS header at the beginning of each and every AAC packet.
You can’t perform that action at this time.
0 commit comments