6 years agoDon't include deps during 'make clean'.
Ralph Giles [Mon, 17 Sep 2012 16:12:28 +0000 (09:12 -0700)]
Don't include deps during 'make clean'.

If a source file moves (as in the previous commit), any stale
dependencies will block execution of 'make' because they
define a dependency relationship to an non-existant file.

The obvious thing to do is 'make clean' to get rid of the
dependency files, but of course that fails the same way.
To support this recovery, skip the include directive if
the GNU make variable MAKECMDGOALS is 'clean', exempting
this target from dependency checks.

Based on an example in the GNU make manual.

6 years agoMove opusfile.h up a level.
Ralph Giles [Mon, 17 Sep 2012 15:43:28 +0000 (08:43 -0700)]
Move opusfile.h up a level.

This matches the convention used by opus itself, where
headers are included without a prefix, and the build
must do -I/path/to/opus to find the appropriate versions.

6 years agoPublic header cleanups.
Timothy B. Terriberry [Mon, 17 Sep 2012 15:34:15 +0000 (08:34 -0700)]
Public header cleanups.

More consistent formatting, s/file/stream/g, and finish adding
 function warning attributes.

6 years agoRevert ea2412ea.
Timothy B. Terriberry [Mon, 17 Sep 2012 14:35:21 +0000 (07:35 -0700)]
Revert ea2412ea.

The actual problem was that opus-uninstalled.pc was forcing static
 linking, but not including all the relevant libraries.

6 years agoUse --static with pkg-config.
Timothy B. Terriberry [Mon, 17 Sep 2012 14:25:32 +0000 (07:25 -0700)]
Use --static with pkg-config.

This is needed to pick up -lm for libopus when it requires it.

6 years agoImplement stereo downmixing functions.
Timothy B. Terriberry [Mon, 17 Sep 2012 04:39:09 +0000 (21:39 -0700)]
Implement stereo downmixing functions.

Move this out of opusfile_example and into the API proper.

6 years agoRemove libm altogether.
Timothy B. Terriberry [Mon, 17 Sep 2012 02:06:14 +0000 (19:06 -0700)]
Remove libm altogether.

It's not actually used by the examples anymore.

6 years agoFix link order and add libm to the seeking example.
Ralph Giles [Mon, 17 Sep 2012 01:16:16 +0000 (18:16 -0700)]
Fix link order and add libm to the seeking example.

Needed to build on my Fedora 16 machine.

6 years agoUse an unprefixed include path for the opus headers.
Ralph Giles [Mon, 17 Sep 2012 01:10:01 +0000 (18:10 -0700)]
Use an unprefixed include path for the opus headers.

This fixes the build to use the headers returned by pkg-config.
The opus library assumes the called will pass -I/path/to/opus
so #include <opus.h> will work.

6 years agoRemove op_get_prev_page().
Timothy B. Terriberry [Sun, 16 Sep 2012 23:14:50 +0000 (16:14 -0700)]
Remove op_get_prev_page().

It wasn't used, and version control has now preserved it forever,
 so no reason to keep it around.

6 years agoRemove op_read_filter() from opusfile.h.
Timothy B. Terriberry [Sun, 16 Sep 2012 22:48:08 +0000 (15:48 -0700)]
Remove op_read_filter() from opusfile.h.

It wasn't actually implemented.

6 years agoInitial code import.
Timothy B. Terriberry [Sun, 16 Sep 2012 22:19:26 +0000 (15:19 -0700)]
Initial code import.

Seeking and playback work, at least as far as the examples test
There are probably still lots of bugs.

6 years agoPlaceholder readme.
Ralph Giles [Sun, 16 Sep 2012 06:07:59 +0000 (23:07 -0700)]
Placeholder readme.