summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--stream.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/stream.go b/stream.go
index ac0a189..cc8fcea 100644
--- a/stream.go
+++ b/stream.go
@@ -11,6 +11,9 @@ import (
// incoming audio stream data.
const streamingPort = 5316
+// StreamURLContext streams audio from a given URL to one or multiple soundbox
+// devices. The devices are referenced via their MAC addresses given by the
+// targets argument. The ctx argument is passed to cancel the streaming.
func StreamURLContext(ctx context.Context, url string, targets []net.HardwareAddr) error {
iface, err := getInterface()
if err != nil {