mirror of
https://github.com/onyx-and-iris/gobs-cli.git
synced 2025-08-05 19:41:45 +00:00
Compare commits
No commits in common. "1c0ef025c1a39fba741ce824c821374fad5619bb" and "040ece840c848aafdb30b087da69b6f61dfa4038" have entirely different histories.
1c0ef025c1
...
040ece840c
@ -22,7 +22,6 @@ tasks:
|
||||
cmds:
|
||||
- task: build-windows
|
||||
- task: build-linux
|
||||
- task: build-macos
|
||||
|
||||
vet:
|
||||
desc: Vet the code
|
||||
@ -47,12 +46,6 @@ tasks:
|
||||
- GOOS=linux GOARCH=amd64 go build -ldflags "-X 'main.version={{.VERSION}}'" -o {{.BIN_DIR}}/{{.PROGRAM}}_linux_amd64
|
||||
internal: true
|
||||
|
||||
build-macos:
|
||||
desc: Build the gobs-cli project for macOS
|
||||
cmds:
|
||||
- GOOS=darwin GOARCH=amd64 go build -ldflags "-X 'main.version={{.VERSION}}'" -o {{.BIN_DIR}}/{{.PROGRAM}}_darwin_amd64
|
||||
internal: true
|
||||
|
||||
test:
|
||||
desc: Run tests
|
||||
cmds:
|
||||
|
12
main_test.go
12
main_test.go
@ -2,7 +2,6 @@ package main
|
||||
|
||||
import (
|
||||
"os"
|
||||
"runtime"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
@ -109,19 +108,10 @@ func setup(client *goobs.Client) {
|
||||
WithSceneItemEnabled(true))
|
||||
|
||||
// ensure Desktop Audio input is created
|
||||
var inputKind string
|
||||
switch runtime.GOOS {
|
||||
case "windows":
|
||||
inputKind = "wasapi_output_capture"
|
||||
case "linux":
|
||||
inputKind = "pulse_output_capture"
|
||||
case "darwin":
|
||||
inputKind = "coreaudio_output_capture"
|
||||
}
|
||||
client.Inputs.CreateInput(inputs.NewCreateInputParams().
|
||||
WithSceneName("gobs-test").
|
||||
WithInputName("Desktop Audio").
|
||||
WithInputKind(inputKind).
|
||||
WithInputKind("wasapi_output_capture").
|
||||
WithInputSettings(map[string]any{
|
||||
"device_id": "default",
|
||||
}))
|
||||
|
Loading…
x
Reference in New Issue
Block a user