Skip to content

Commit

Permalink
audio error still
Browse files Browse the repository at this point in the history
Signed-off-by: David Anyatonwu <[email protected]>
  • Loading branch information
onyedikachi-david committed Sep 8, 2024
1 parent 0d854f7 commit e4c0a6d
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,22 @@ jobs:
shell: pwsh
run: |
Get-WmiObject Win32_SoundDevice | Where-Object { $_.Name -like "*CABLE Output*" } | Select-Object Name, Status
- name: Check VB-CABLE initialization
shell: pwsh
run: |
$audioDevice = Get-WmiObject Win32_SoundDevice | Where-Object { $_.Name -like "*CABLE Output*" }
if ($audioDevice) {
Write-Output "VB-CABLE Output device found: $($audioDevice.Name)"
if ($audioDevice.Status -eq "OK") {
Write-Output "VB-CABLE Output device is initialized and ready"
} else {
Write-Error "VB-CABLE Output device is not ready. Status: $($audioDevice.Status)"
exit 1
}
} else {
Write-Error "VB-CABLE Output device not found"
exit 1
}
- name: List audio devices after VB-CABLE installation
shell: pwsh
Expand All @@ -344,7 +360,7 @@ jobs:
shell: pwsh
run: |
# Set up environment
$env:RUST_LOG = "trace,screenpipe=trace"
$env:RUST_LOG = "trace,screenpipe=trace,screenpipe_audio=trace"
$env:RUST_BACKTRACE = "full"
New-Item -ItemType Directory -Force -Path .\test_data\logs
Expand All @@ -361,8 +377,8 @@ jobs:
exit 1
}
# Start screenpipe with VB-CABLE device
$process = Start-Process -FilePath .\screenpipe.exe -ArgumentList "--data-dir", ".\test_data", "--fps", "1" -NoNewWindow -PassThru -RedirectStandardOutput .\test_data\logs\screenpipe_output.log -RedirectStandardError .\test_data\logs\screenpipe_error.log
# Start screenpipe with correct arguments
$process = Start-Process -FilePath .\screenpipe.exe -ArgumentList "--data-dir", ".\test_data", "--fps", "1", "--audio-device", "CABLE Output (VB-Audio Virtual Cable)" -NoNewWindow -PassThru -RedirectStandardOutput .\test_data\logs\screenpipe_output.log -RedirectStandardError .\test_data\logs\screenpipe_error.log
if ($null -eq $process) {
Write-Error "Failed to start screenpipe process"
Expand All @@ -371,7 +387,7 @@ jobs:
Write-Output "Screenpipe process started with PID: $($process.Id)"
# Wait longer for initialization
# Wait for initialization
Start-Sleep -Seconds 60
if (Get-Process -Id $process.Id -ErrorAction SilentlyContinue) {
Expand Down

0 comments on commit e4c0a6d

Please sign in to comment.