From 36a2fda37e837bc39c88a2fa38678b0f3bded041 Mon Sep 17 00:00:00 2001 From: xegineering Date: Fri, 8 Nov 2024 20:56:56 +0100 Subject: 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. --- soundbox/interfaces.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'soundbox/interfaces.go') 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() -- cgit v1.2.3-70-g09d2