aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/pipewire/core_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-11-25 08:52:06 +0900
committerOphestra <cat@gensokyo.uk>2025-11-25 08:52:06 +0900
commitfc3d78fe010f9e3c22a058723bf816570553c0da (patch)
tree3b618c0e5aa1501f9ff9182fdf2c2ceb12f6d34c /internal/pipewire/core_test.go
parent591637264a76771d36531a3e51e7db40ef853421 (diff)
internal/pipewire: implement Core::Sync
Once again, already entirely supported, the offset is not yet fully verified but makes intuitive sense. Will verify this on future occurrences of the message. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/pipewire/core_test.go')
-rw-r--r--internal/pipewire/core_test.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/internal/pipewire/core_test.go b/internal/pipewire/core_test.go
index b47c4265..a04013c2 100644
--- a/internal/pipewire/core_test.go
+++ b/internal/pipewire/core_test.go
@@ -14,6 +14,15 @@ func TestCoreHello(t *testing.T) {
}.run(t)
}
+func TestCoreSync(t *testing.T) {
+ encodingTestCases[pipewire.CoreSync, *pipewire.CoreSync]{
+ {"sample", []byte(sendmsg00Message03POD), pipewire.CoreSync{
+ ID: pipewire.PW_ID_CORE,
+ Sequence: pipewire.CoreSyncSequenceOffset + 3,
+ }, nil},
+ }.run(t)
+}
+
func TestCoreGetRegistry(t *testing.T) {
encodingTestCases[pipewire.CoreGetRegistry, *pipewire.CoreGetRegistry]{
{"sample", []byte(sendmsg00Message02POD), pipewire.CoreGetRegistry{