summaryrefslogtreecommitdiff
path: root/soundbox/interfaces.go
diff options
context:
space:
mode:
authorxegineering <me@xegineering.eu>2024-11-08 20:56:56 +0100
committerxegineering <me@xegineering.eu>2024-11-10 15:53:44 +0100
commit36a2fda37e837bc39c88a2fa38678b0f3bded041 (patch)
tree892a68802b2df5ab474417964d1512027a5eb9df /soundbox/interfaces.go
parente30a1b0768d35ec70e5d2c00e6ae87c0f267b881 (diff)
downloadsoundbox-go-36a2fda37e837bc39c88a2fa38678b0f3bded041.tar
soundbox-go-36a2fda37e837bc39c88a2fa38678b0f3bded041.tar.zst
soundbox-go-36a2fda37e837bc39c88a2fa38678b0f3bded041.zip
Use Go code for output network stream
Calling the external program `ffmpeg` should be avoided completely in the future to make soundbox-go a pure Go code base. `ffmpeg` provides the following functionality to soundbox-go: - web radio input stream transport - re-encoding of the audio stream - output stream transport to soundbox devices The last part should be replaced with this commit as a first step.
Diffstat (limited to 'soundbox/interfaces.go')
-rw-r--r--soundbox/interfaces.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/soundbox/interfaces.go b/soundbox/interfaces.go
index 2854b1a..04839c7 100644
--- a/soundbox/interfaces.go
+++ b/soundbox/interfaces.go
@@ -17,7 +17,7 @@ func getInterface() (net.Interface, error) {
}
for _, iface := range all {
- if iface.Flags & net.FlagUp == 0 {
+ if iface.Flags&net.FlagUp == 0 {
continue
}
addresses, err := iface.Addrs()