()
| 61 | * Stops the active system audio capture stream. |
| 62 | */ |
| 63 | export function stopSystemAudioCapture(): void { |
| 64 | if (activeStream) { |
| 65 | activeStream.getTracks().forEach(track => track.stop()); |
| 66 | activeStream = null; |
| 67 | console.log('System audio capture stopped'); |
| 68 | } |
| 69 | } |