This commit is contained in:
魏少阳 2024-01-03 16:21:01 +08:00
commit db5ab63e55
3 changed files with 6 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

View File

@ -1,4 +1,3 @@
import 'dart:convert';
import 'dart:typed_data';
import 'package:flutter/foundation.dart';
import 'package:get/get.dart';
@ -6,7 +5,6 @@ import 'package:star_lock/talk/call/g711.dart';
import 'package:star_lock/talk/call/iFrameInfo.dart';
import '../../tools/eventBusEventManage.dart';
import 'package:flutter_pcm_sound/flutter_pcm_sound.dart';
import 'package:flutter_sound/flutter_sound.dart';
class CallTalk {
static CallTalk? _manager;
@ -152,4 +150,9 @@ class CallTalk {
print("Not enough data in allPcmData.");
}
}
//
void stopPcmSound() {
FlutterPcmSound.stop();
}
}

View File

@ -117,6 +117,7 @@ class CommandUDPReciverManager {
UDPTalkClass().isBeCall = false;
Get.back();
UDPTalkClass().stopLocalAudio();
CallTalk().stopPcmSound();
eventBus.fire(GetUDPStatusRefreshUI(UDPTalkClass().status));
}
break;