Commit graph

38 commits

Author SHA1 Message Date
DataHoarder 4421c708d1
Add support for setting and getting the ogg muxing delay
Some checks failed
continuous-integration/drone/push Build is failing
2022-07-20 12:04:58 +02:00
DataHoarder afe0cd7874
Support more than 8 channels, set audio application 2022-07-20 11:41:29 +02:00
DataHoarder 6cc027f24d Use libopusenc to encode stream, WiP: tests
Some checks failed
continuous-integration/drone/push Build is failing
2022-02-27 18:56:08 +01:00
Hraban Luyat f08db0e111 docs: Update copyright notice 2020-07-09 17:23:21 +01:00
elinor 865db73fad (Set)InBandFEC - set and return bool instead of int 2018-04-02 13:31:07 +03:00
elinor 01412cbea5 Added packet loss and inband fec encoder ctls 2018-03-26 07:40:41 +03:00
Hraban Luyat c490b1f079 Directly access preprocessor directives
Closes issue hraban/opus#9. To be honest I'm not 100% why I didn't do it
this way in the first place. Three years have passed, something was
probably fixed in CGo, or maybe I was just wrong about this not being
possible, all along. Either way, it works on my machine, so that's all
the testing you need to do, right?
2018-03-11 18:37:16 +00:00
Hraban Luyat 6c08ee0d19 Update import path to pkg-config style
pkg-config --cflags always puts you in the opus/ directory where opus.h
directly lives. No need to prefix with opus/. That just happened to work
because it was symlinked into /usr/include/opus, but we don't need to
rely on that now that we're using pkg-config.

Based on Tobias Wellnitz's comment (hraban/opus#12)
2017-02-28 00:56:50 +00:00
Hraban Luyat 165dcfb370 Update godoc on updated method names 2017-01-11 00:46:08 +00:00
Hraban Luyat 1269d97adf Clearer function names for SetBitrateTo*()
There is also a MaxBitrate property; once implemented that would become
SetMaxBitrate(). Too confusing to also have SetBitrateMax(). The extra
To hopefully helps disambiguate.
2017-01-11 00:07:01 +00:00
Hraban Luyat c0820a0f12 Merge commit '39af50e' into v2 2017-01-11 00:01:16 +00:00
Hraban Luyat d19039546f Update copyright year to 2015-2017. 🎆 2017-01-01 23:36:24 +00:00
Hraban Luyat ff5c387356 BREAKING: UseDTX -> SetDTX 2016-12-30 22:56:54 +00:00
Hraban Luyat 8cae507fa1 BREAKING: Return error vals in encoder CTL API
Wasn't right to ignore these
2016-12-30 22:49:17 +00:00
Hraban Luyat 33518d27da No local var in bridge functions 2016-12-30 22:32:09 +00:00
Hraban Luyat 8c9a77f136 Consistency in bandwidth constant names 2016-12-30 19:26:39 +00:00
dh1tw f0e0e66def fixed typos 2016-12-30 19:46:26 +01:00
dh1tw 008490cba0 reverted to using types for enums; added SetBitrateMax and SetBitrateAuto 2016-12-30 18:55:25 +01:00
dh1tw df37abd424 added new encoder methods & tests 2016-12-30 15:57:37 +01:00
Hraban Luyat d941087903 Export error type, CamelCase error names 2016-12-29 11:58:57 +00:00
Hraban Luyat c6de5af4e0 Update README with stereo vs mono 2016-10-10 16:35:39 +01:00
Hraban Luyat a2ed672652 Unit test for stereo sound 2016-10-10 16:18:03 +01:00
Hraban Luyat 10761f623b Make opus errors wrapped ints, expose names
Allows comparing error values by value instead of just by human readable
string.
2016-10-10 14:18:10 +01:00
Hraban Luyat d104ca9cf7 Documentation for public encoder methods 2016-08-30 17:50:19 +01:00
Hraban Luyat a0163af439 Encoder.SampleRate() method reports sample rate 2016-08-30 17:47:52 +01:00
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 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 067ec11052 Update copyright period to 2016 2016-08-14 15:10:11 +01:00
Hraban Luyat 3ae552961f Use pkg-config to link opus 2016-08-14 14:44:41 +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 e4014abb4a Update documentation, remove unused var 2015-07-13 18:36:20 +01:00
Hraban Luyat b568024252 (untested) libopusfile simple decoder API 2015-07-05 20:28:08 +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 bae24932f6 Add 16 bit codec apis 2015-07-05 12:27:01 +01:00
Hraban Luyat b2eed4d9b9 Related code in separate files 2015-07-05 12:15:17 +01:00