|
@@ -519,6 +519,7 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
|
var nextAction : ((Bool) -> Void)?
|
|
|
if type == BFChooseMusicViewClickType.sure {
|
|
|
let model = vv?.chosedMusic
|
|
|
+ wself.bgmModel = model
|
|
|
if let title = model?.musicName {
|
|
|
wself.addMusicBtn.setTitle(model?.musicName, for: .normal)
|
|
|
}else{
|
|
@@ -536,7 +537,7 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
|
vc.modalPresentationStyle = .fullScreen
|
|
|
vc.choseAction = {[weak self] voiceModel in
|
|
|
guard let wself = self else { return }
|
|
|
-
|
|
|
+ wself.bgmModel = voiceModel
|
|
|
// wself.dismiss(animated: true) {
|
|
|
//
|
|
|
// }
|
|
@@ -789,14 +790,7 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
|
override public func viewDidLoad() {
|
|
|
super.viewDidLoad()
|
|
|
_ = disablePopGesture()
|
|
|
-
|
|
|
- let path = Bundle.main.path(forResource: "11111", ofType: "mp3")
|
|
|
- bgmModel = PQVoiceModel.init()
|
|
|
- bgmModel?.wavFilePath = path
|
|
|
- bgmModel?.startCMTime = CMTime.init(value: 20 * 1000_000, timescale: 1000_000)
|
|
|
- bgmModel?.endCMTime = CMTime.init(value: 240 * 1000_000, timescale: 1000_000)
|
|
|
- bgmModel?.volume = 100
|
|
|
-
|
|
|
+
|
|
|
let doubleTapGes = UITapGestureRecognizer(target: self, action: #selector(doubleTapAction(tap:)))
|
|
|
doubleTapGes.numberOfTapsRequired = 2
|
|
|
doubleTapGes.numberOfTouchesRequired = 1
|