Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Opus
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexander Traud
Opus
Commits
d9636c5d
Commit
d9636c5d
authored
13 years ago
by
Jean-Marc Valin
Browse files
Options
Downloads
Patches
Plain Diff
Add a function to query the Opus version
parent
ae231145
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
configure.ac
+1
-1
1 addition, 1 deletion
configure.ac
src/opus.c
+8
-0
8 additions, 0 deletions
src/opus.c
src/opus.h
+2
-0
2 additions, 0 deletions
src/opus.h
with
11 additions
and
1 deletion
configure.ac
+
1
−
1
View file @
d9636c5d
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
src/opus.c
+
8
−
0
View file @
d9636c5d
...
...
@@ -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
;
}
This diff is collapsed.
Click to expand it.
src/opus.h
+
2
−
0
View file @
d9636c5d
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment