Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions Source/RecordView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -154,19 +154,20 @@ public class RecordView: UIView, CAAnimationDelegate {
}

//this will be called when user starts tapping the button
private func onStart(recordButton: RecordButton) {
private func onStart(recordButton: RecordButton) {
isSwiped = false

self.prepareToStartRecording(recordButton: recordButton)

if isSoundEnabled {
audioPlayer.playAudioFile(soundType: .start)
audioPlayer.didFinishPlaying = { [weak self] _ in
self?.delegate?.onStart()
// self?.delegate?.onStart()
}
} else {
delegate?.onStart()
}
// else {
delegate?.onStart()
// }
}

private func prepareToStartRecording(recordButton: RecordButton) {
Expand Down