mirror of
https://github.com/onyx-and-iris/voicemeeter.git
synced 2024-11-15 17:40:51 +00:00
70d69f5599
example in readme updated. level pooler implemented, runs in its own goroutine. Remote type now exported observers example updated.
27 lines
351 B
Go
27 lines
351 B
Go
package voicemeeter_test
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
"time"
|
|
|
|
"github.com/onyx-and-iris/voicemeeter-api-go"
|
|
)
|
|
|
|
var (
|
|
vmRem = voicemeeter.GetRemote("potato")
|
|
)
|
|
|
|
func TestMain(m *testing.M) {
|
|
vmRem.Login()
|
|
code := m.Run()
|
|
vmRem.Logout()
|
|
os.Exit(code)
|
|
}
|
|
|
|
func sync() {
|
|
time.Sleep(30 * time.Millisecond)
|
|
for vmRem.Pdirty() || vmRem.Mdirty() {
|
|
}
|
|
}
|