Commit graph

17 commits

Author SHA1 Message Date
DataHoarder c9b07c6bec Added +build comment
All checks were successful
continuous-integration/drone/push Build is passing
2022-01-30 01:33:20 +01:00
DataHoarder 88633d8444 Updated go build options on files
All checks were successful
continuous-integration/drone/push Build is passing
2022-01-27 17:21:09 +01:00
Randy Reddig 25a249fbd5 feat: build without libopusfile using go build tag
This patch introduces a new build tag `nolibopusfile` that conditionally
compiles out the code that imports `libopusfile`. This enables a static
binary build on Alpine Linux, which doesn’t have a static `libopusfile`.

Tests still work:

```sh
go test -tags nolibopusfile ./...
go test ./...
```

We could also have moved all libopusfile related code (i.e. Stream) into
a separate sub-package, but that would break backwards compatibility.
This feature is too unpopular to justify introducing a new major
version.

See also: https://github.com/hraban/opus/pull/24
2020-07-10 13:54:23 +01:00
Hraban Luyat f08db0e111 docs: Update copyright notice 2020-07-09 17:23:21 +01:00
Hraban Luyat d19039546f Update copyright year to 2015-2017. 🎆 2017-01-01 23:36:24 +00:00
Hraban Luyat a2ed672652 Unit test for stereo sound 2016-10-10 16:18:03 +01:00
Hraban Luyat 0e63cf1b6c Change copyright headers to refer to AUTHORS file 2016-10-10 15:24:24 +01:00
Hraban Luyat 067ec11052 Update copyright period to 2016 2016-08-14 15:10:11 +01:00
Hraban Luyat 4b96e6fc50 Fix go pointers to CGo (go 1.6) 2016-08-14 14:43:45 +01:00
Hraban Luyat 974609055b Compare pre-decoded wav with decoded opus data 2015-07-12 11:08:13 +00:00
Hraban Luyat d7e886a76b Refactoring the tests, wip (but passing) 2015-07-12 10:22:25 +00:00
Hraban Luyat e5f6064226 Test opus stream .Close method 2015-07-12 09:40:25 +00:00
Hraban Luyat bf5a3e8a3b Test opus stream with small buffer 2015-07-09 17:48:18 +01:00
Hraban Luyat 252bb7dabe Better names for stream unit tests 2015-07-09 16:38:02 +00:00
Hraban Luyat 695222dff5 Test real Opus file 2015-07-09 16:36:30 +00:00
Hraban Luyat 28902b9d11 Close readers if they implement io.Closer 2015-07-09 12:28:38 +00:00
Hraban Luyat c5395ca98a Change stream reader API to look like io.Reader 2015-07-05 21:03:21 +01:00