From 7435fc6e1af971854393f34e6fa11a846e931bc7 Mon Sep 17 00:00:00 2001 From: Dmitrii Okunev Date: Tue, 14 Jan 2025 22:59:16 +0000 Subject: [PATCH] Build fixes for other platforms --- cmd/subtitleswindow/audio_windows.go | 5 +++++ cmd/subtitleswindow/main.go | 1 - go.mod | 2 +- go.sum | 2 ++ 4 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 cmd/subtitleswindow/audio_windows.go diff --git a/cmd/subtitleswindow/audio_windows.go b/cmd/subtitleswindow/audio_windows.go new file mode 100644 index 0000000..93f1f33 --- /dev/null +++ b/cmd/subtitleswindow/audio_windows.go @@ -0,0 +1,5 @@ +package main + +import ( + _ "github.com/xaionaro-go/audio/pkg/audio/backends/portaudio" +) diff --git a/cmd/subtitleswindow/main.go b/cmd/subtitleswindow/main.go index b936d1d..856a89d 100644 --- a/cmd/subtitleswindow/main.go +++ b/cmd/subtitleswindow/main.go @@ -17,7 +17,6 @@ import ( "github.com/spf13/pflag" "github.com/xaionaro-go/audio/pkg/audio" _ "github.com/xaionaro-go/audio/pkg/audio/backends/oto" - _ "github.com/xaionaro-go/audio/pkg/audio/backends/portaudio" "github.com/xaionaro-go/observability" "github.com/xaionaro-go/player/pkg/player/builtin" "github.com/xaionaro-go/speech/pkg/speech" diff --git a/go.mod b/go.mod index bca8ef1..e80f55d 100644 --- a/go.mod +++ b/go.mod @@ -80,7 +80,7 @@ require ( github.com/xaionaro-go/logrustash v0.0.0-20240804141650-d48034780a5f // indirect github.com/xaionaro-go/object v0.0.0-20241026212449-753ce10ec94c github.com/xaionaro-go/proxy v0.0.0-20250111150848-1f0e7b262638 // indirect - github.com/xaionaro-go/recoder v0.0.0-20250111153658-7e55cef13b0f // indirect + github.com/xaionaro-go/recoder v0.0.0-20250114225701-f0f4ddc5b0b6 // indirect github.com/xaionaro-go/spinlock v0.0.0-20200518175509-30e6d1ce68a1 // indirect github.com/xaionaro-go/unsafetools v0.0.0-20241024014258-a46e1ce3763e // indirect github.com/yuin/goldmark v1.7.1 // indirect diff --git a/go.sum b/go.sum index fbf5384..61f38c5 100644 --- a/go.sum +++ b/go.sum @@ -365,6 +365,8 @@ github.com/xaionaro-go/proxy v0.0.0-20250111150848-1f0e7b262638 h1:w7Dt6Mpj36S2c github.com/xaionaro-go/proxy v0.0.0-20250111150848-1f0e7b262638/go.mod h1:hOkJBFoMsnCDoZgpSPTHYbnevPgtpD16d9Xga91U+Eo= github.com/xaionaro-go/recoder v0.0.0-20250111153658-7e55cef13b0f h1:TSCIAhxRA/C0L8Eq16JHbsB3iixrA5jVRlN36yIvvZk= github.com/xaionaro-go/recoder v0.0.0-20250111153658-7e55cef13b0f/go.mod h1:rWeSg9LZAt/3FvkFkHzD+0cwemLEHQaIIUlEM3qs8pQ= +github.com/xaionaro-go/recoder v0.0.0-20250114225701-f0f4ddc5b0b6 h1:+/zQS6XviP9FP1EmH+nzBdlpbMpLHvla2UyRLnZ7uFg= +github.com/xaionaro-go/recoder v0.0.0-20250114225701-f0f4ddc5b0b6/go.mod h1:2zh8VZH2y303iToWxYVtno0Ojq0xMq40YDQKq/Dnfl0= github.com/xaionaro-go/secret v0.0.0-20250111141743-ced12e1082c2 h1:QHpTWfyfmz65cE0MtFXe9fScdi+X0VIYR2wgolSYEUk= github.com/xaionaro-go/secret v0.0.0-20250111141743-ced12e1082c2/go.mod h1:XKoHGZ4VKMbVBl8VotLIoWQdrB6Q7jnR++RbkiegZFU= github.com/xaionaro-go/spinlock v0.0.0-20190309154744-55278e21e817/go.mod h1:Nb/15eS0BMty6TMuWgRQM8WCDIUlyPZagcpchHT6c9Y=