tuananhdtu
tuananhdtu
public func restart(localVocalPathNew : String){ playerAudio?.stop() micRecorder?.stop() micRecorder?.closeFile(file: &audioFile) if (micRecorder?.audioFile?.url) != nil { audioFile = nil FileUtils.removeFile(path: localVocalPath ?? "") localVocalPath = localVocalPathNew if let input = engine?.input {...
public func restart(localVocalPathNew : String){ recorder?.stop() recorder?.closeFile(file: &audioFile) if (recorder?.audioFile?.url) != nil { audioFile = nil FileUtils.removeFile(path: localVocalPath ?? "") localVocalPath = localVocalPathNew if let input = engine?.input { recorder...
private func initializeEffects() { let inputNode: Node? = engine.input guard let inputNode else { return } guard !isInitialized else { return } isInitialized = true // ------------------ leadingVocalAudioFader = Fader(inputNode,...