From: Hraban Luyat Date: Mon, 13 Jul 2015 17:36:20 +0000 (+0100) Subject: Update documentation, remove unused var X-Git-Tag: v2.0.0~83 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=e4014abb4a51b19dc724441a2ab8166bf5aaa561;p=go-opus.git Update documentation, remove unused var --- diff --git a/encoder.go b/encoder.go index 700d515..1099ae8 100644 --- a/encoder.go +++ b/encoder.go @@ -17,8 +17,7 @@ import "C" var errEncUninitialized = fmt.Errorf("opus encoder uninitialized") -// Encoder contains the state of an Opus encoder for libopus. Do not use this -// directly, but call +// Encoder contains the state of an Opus encoder for libopus. type Encoder struct { p *C.struct_OpusEncoder // Memory for the encoder struct allocated on the Go heap to allow Go GC to diff --git a/errors.go b/errors.go index f3f606d..9bf482e 100644 --- a/errors.go +++ b/errors.go @@ -30,8 +30,6 @@ import "C" type opusFileError int -var opusfileErrcodes = map[C.int]error{} - var ( ERR_OP_FALSE = opusFileError(C.CONST_OP_FALSE) ERR_OP_EOF = opusFileError(C.CONST_OP_EOF) diff --git a/opus.go b/opus.go index 3d6fc6d..56e70cd 100644 --- a/opus.go +++ b/opus.go @@ -18,7 +18,7 @@ package opus #cgo CFLAGS: -std=c99 -Wall -Werror -pedantic -Ibuild/include #include -// Remap #defines to avoid depending on their literal value +// Access the preprocessor from CGO const int CONST_APPLICATION_VOIP = OPUS_APPLICATION_VOIP; const int CONST_APPLICATION_AUDIO = OPUS_APPLICATION_AUDIO; const int CONST_APPLICATION_RESTRICTED_LOWDELAY = OPUS_APPLICATION_RESTRICTED_LOWDELAY;