Files
livekit-3d/scripts/stop-spatial.ps1
T
arimius 909e51bc0a
Test / test (pull_request) Canceled after 0s
PR Slack Notifier / notify-devs (pull_request) Canceled after 0s
Add server-side spatial audio with HRTF, occlusion and adaptive quality
2026-10-05 17:29:30 +03:00

16 lines
864 B
PowerShell

# Copyright 2026 Sverse contributors. Licensed under the Apache License, Version 2.0.
[CmdletBinding()]
param()
$ErrorActionPreference = 'Stop'
$spatialRoot = [IO.Path]::GetFullPath((Join-Path $PSScriptRoot '..'))
$spatialRuntime = [IO.Path]::GetFullPath((Join-Path $spatialRoot '.spatial-runtime')) + [IO.Path]::DirectorySeparatorChar
# Select only this checkout's development binaries; never stop by name alone.
Get-CimInstance Win32_Process | Where-Object {
$_.ExecutablePath -and $_.ExecutablePath.StartsWith($spatialRuntime, [StringComparison]::OrdinalIgnoreCase) -and
([IO.Path]::GetFileName($_.ExecutablePath) -match '^(livekit-server|spatial-test)(-[a-z0-9-]+)?\.exe$')
} | ForEach-Object {
Stop-Process -Id $_.ProcessId
Wait-Process -Id $_.ProcessId -Timeout 10 -ErrorAction SilentlyContinue
Write-Host "Stopped PID $($_.ProcessId)"
}