Commit graph

172 commits

Author SHA1 Message Date
Hraban Luyat 3b5e51100a Rename GetDTX() to DTX() (more go-like)
Breaks the API :/ doing it sooner rather than later to avoid impacting
too many people.

Sorry though!
2016-08-30 17:28:04 +01:00
Hraban Luyat 4e83c9e0b3 Go error in readme 2016-08-30 17:17:18 +01:00
Hraban Luyat 8d220dcb1d Examples in README 2016-08-30 17:15:18 +01:00
Hraban Luyat 1dc7ffb3c6 Add authors notice to LICENSE file 2016-08-29 14:04:54 +01:00
Hraban Luyat 7f89e942ba Add Xu as author for relevant files 2016-08-29 14:03:14 +01:00
Dejian Xu c598ce9137 Setter and getter API for DTX on encoders
Go-style DTX setter and getter api on the encoder.

PR hraban/opus#4
2016-08-29 14:03:01 +01:00
Hraban Luyat 8ab39107f1 Upgrade travis to go 1.7 2016-08-22 15:54:11 +01:00
Hraban Luyat 5a79da6aa8 Update opus link comment 2016-08-22 15:34:16 +01:00
Hraban Luyat 223a3b298c Move callbacks struct to C allocator, to be safe
I'm not sure if the Go pointer proposal has already been implemented,
but under the proposed restrictions allocating the callback struct in Go
and passing that pointer to a C function which keeps it after returning
is not allowed.

This patch allocates the struct in C and passes the pointer from Go to
C, which is fine.
2016-08-22 15:11:13 +01:00
Hraban Luyat 3bccc0a781 Copyright notice in all files 2016-08-14 23:33:23 +01:00
Hraban Luyat ca74e8cf20 Travis CI (#3)
Travis-CI

go1.6, ubuntu trusty.
2016-08-14 23:31:03 +01:00
Hraban Luyat d0644812e6 Remove obsolete makefile 2016-08-14 15:20:15 +01:00
Hraban Luyat e83e6b6cb3 Update .gitignore (no more manual build noise) 2016-08-14 15:10:35 +01:00
Hraban Luyat 067ec11052 Update copyright period to 2016 2016-08-14 15:10:11 +01:00
Hraban Luyat cdda0c918b Merge pull request #2 from hraban/pkg-config
pkg-config
2016-08-14 15:07:00 +01:00
Hraban Luyat 5557f5713d Update README to reflect pkg-config use. 2016-08-14 15:05:38 +01:00
Hraban Luyat 6ecba58da8 Remove opus submodules 2016-08-14 14:47:16 +01:00
Hraban Luyat 3ae552961f Use pkg-config to link opus 2016-08-14 14:44:41 +01:00
Hraban Luyat 4b96e6fc50 Fix go pointers to CGo (go 1.6) 2016-08-14 14:43:45 +01:00
Hraban Luyat 16647bad20 List dependencies in README 2016-08-14 11:47:03 +01:00
Hraban Luyat b6c362cf3b Let user pass the target buffers (noalloc) 2015-07-22 06:53:34 +01:00
Hraban Luyat ecda920cce Better doc for Init vs New 2015-07-13 23:37:59 +01:00
Hraban Luyat ea0b415d37 Simplify CGO callback chain 2015-07-13 22:56:08 +01:00
Hraban Luyat f80f6d4113 Merge remote-tracking branch 'vps/master' 2015-07-13 22:47:22 +01:00
Hraban Luyat e4014abb4a Update documentation, remove unused var 2015-07-13 18:36:20 +01:00
Hraban Luyat c692580f07 Access preprocessor defines from CGO
Hack involves assigning the preprocessor defines to const values and
then accessing those through CGO.
2015-07-13 17:15:26 +01:00
Hraban Luyat f4429ec595 #include own header file in proxy .c file 2015-07-12 19:46:16 +00: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 22ae9de258 Flush last good bytes before returning EOF 2015-07-11 05:59:28 +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 4b7e292ab1 Elaborate docs for Read functions 2015-07-09 13:34:52 +00:00
Hraban Luyat b5907a342c Merge remote-tracking branch 'origin/master' 2015-07-09 12:29:03 +00:00
Hraban Luyat 28902b9d11 Close readers if they implement io.Closer 2015-07-09 12:28:38 +00:00
Hraban Luyat c9ae20a887 Set the callback buffer before it is invoked 2015-07-09 13:27:32 +01:00
Hraban Luyat 6b3d9bb2da float routines for stream reader 2015-07-05 21:07:29 +01:00
Hraban Luyat ffa37d1442 .gitignore build directory 2015-07-05 21:04:03 +01:00
Hraban Luyat c5395ca98a Change stream reader API to look like io.Reader 2015-07-05 21:03:21 +01:00
Hraban Luyat 673f160c38 Close routine for opus stream 2015-07-05 20:33:27 +01:00
Hraban Luyat bb68638c31 .gitignore libopusfile.a 2015-07-05 20:28:39 +01:00
Hraban Luyat b568024252 (untested) libopusfile simple decoder API 2015-07-05 20:28:08 +01:00
Hraban Luyat 195d1d766f Extra note in README about installation 2015-07-05 15:01:20 +01:00
Hraban Luyat 5289d1e143 .Init method for preallocated codecs 2015-07-05 14:42:05 +01:00
Hraban Luyat 643592f692 Let Go GC manage the codec memory
No need to manually free memory anymore
2015-07-05 14:23:15 +01:00
Hraban Luyat 5743a0c8e2 Typo in readme 2015-07-05 14:01:58 +01:00
Hraban Luyat 52d986ce5a fix link in README 2015-07-05 12:53:12 +01:00
Hraban Luyat f5a545cd17 Rename api.go to opus.go 2015-07-05 12:51:07 +01:00