diff --git a/cmd/convert_mp3_windows.go b/cmd/convert_mp3_windows.go deleted file mode 100644 index aba7fef..0000000 --- a/cmd/convert_mp3_windows.go +++ /dev/null @@ -1,18 +0,0 @@ -//go:build windows - -package cmd - -import ( - "fmt" - - "github.com/braheezy/goqoa/pkg/qoa" -) - -func decodeMp3(inputData *[]byte) ([]int16, *qoa.QOA) { - fmt.Println("MP3 is not supported on Windows") - return nil, nil -} - -func encodeMp3(outputFile string, q *qoa.QOA, decodedData []int16) { - fmt.Println("MP3 is not supported on Windows") -} diff --git a/cmd/goqoa_test.go b/cmd/goqoa_test.go index e9f88c1..b5f0389 100644 --- a/cmd/goqoa_test.go +++ b/cmd/goqoa_test.go @@ -6,7 +6,6 @@ import ( "encoding/hex" "fmt" "os" - "runtime" "strings" "testing" @@ -52,25 +51,16 @@ func TestConvertCmd(t *testing.T) { inputFormat: "flac", outputFormat: "qoa", }, - } - if runtime.GOOS != "windows" { - mp3TestCases := []struct { - audioFormat string - inputFormat string - outputFormat string - }{ - { - audioFormat: "mp3", - inputFormat: "mp3", - outputFormat: "qoa", - }, - { - audioFormat: "mp3", - inputFormat: "qoa", - outputFormat: "mp3", - }, - } - tt = append(tt, mp3TestCases...) + { + audioFormat: "mp3", + inputFormat: "mp3", + outputFormat: "qoa", + }, + { + audioFormat: "mp3", + inputFormat: "qoa", + outputFormat: "mp3", + }, } for _, tc := range tt {