()
| 513 | } |
| 514 | |
| 515 | export function stopRecording(): void { |
| 516 | if (nativeRecordingActive && audioNapi) { |
| 517 | audioNapi.stopNativeRecording() |
| 518 | nativeRecordingActive = false |
| 519 | return |
| 520 | } |
| 521 | if (activeRecorder) { |
| 522 | activeRecorder.kill('SIGTERM') |
| 523 | activeRecorder = null |
| 524 | } |
| 525 | } |
| 526 |
no test coverage detected