mirror of
https://github.com/onyx-and-iris/voicemeeter.git
synced 2024-11-22 12:50:53 +00:00
7a79555cb8
update readme example
30 lines
321 B
Go
30 lines
321 B
Go
package voicemeeter
|
|
|
|
import (
|
|
"log"
|
|
"os"
|
|
"testing"
|
|
"time"
|
|
)
|
|
|
|
var (
|
|
vm, err = NewRemote("potato")
|
|
)
|
|
|
|
func TestMain(m *testing.M) {
|
|
if err != nil {
|
|
log.Fatal(err)
|
|
}
|
|
|
|
vm.Login()
|
|
code := m.Run()
|
|
vm.Logout()
|
|
os.Exit(code)
|
|
}
|
|
|
|
func sync() {
|
|
time.Sleep(30 * time.Millisecond)
|
|
for vm.Pdirty() || vm.Mdirty() {
|
|
}
|
|
}
|