Commit d9636c5d authored by Jean-Marc Valin's avatar Jean-Marc Valin
Browse files

Add a function to query the Opus version

parent ae231145
......@@ -9,7 +9,7 @@ m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
OPUS_MAJOR_VERSION=0
OPUS_MINOR_VERSION=9
OPUS_MICRO_VERSION=5
OPUS_MICRO_VERSION=6
OPUS_EXTRA_VERSION=
OPUS_VERSION=$OPUS_MAJOR_VERSION.$OPUS_MINOR_VERSION.$OPUS_MICRO_VERSION$OPUS_EXTRA_VERSION
LIBOPUS_SUFFIX=0
......
......@@ -25,6 +25,9 @@
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
const char *opus_strerror(int error)
{
......@@ -43,3 +46,8 @@ const char *opus_strerror(int error)
else
return error_strings[-error];
}
const char *opus_get_version_string(void)
{
return OPUS_VERSION;
}
......@@ -220,6 +220,8 @@ OPUS_EXPORT int opus_decoder_get_nb_samples(const OpusDecoder *dec, const unsign
OPUS_EXPORT const char *opus_strerror(int error);
OPUS_EXPORT const char *opus_get_version_string(void);
/* For testing purposes: the encoder and decoder state should always be identical after coding a payload */
OPUS_EXPORT int opus_encoder_get_final_range(OpusEncoder *st);
OPUS_EXPORT int opus_decoder_get_final_range(OpusDecoder *st);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment