export pdirty, mdirty through remote type

remote sync from setters.

add sync to tests.
This commit is contained in:
onyx-and-iris
2022-06-30 23:08:35 +01:00
parent 232f8561de
commit a7abc43726
5 changed files with 48 additions and 13 deletions

View File

@@ -3,6 +3,7 @@ package voicemeeter_test
import (
"os"
"testing"
"time"
"github.com/onyx-and-iris/voicemeeter-api-go/voicemeeter"
)
@@ -17,3 +18,9 @@ func TestMain(m *testing.M) {
vmRem.Logout()
os.Exit(code)
}
func sync() {
time.Sleep(30 * time.Millisecond)
for vmRem.Pdirty() || vmRem.Mdirty() {
}
}