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
06677d73
Commit
06677d73
authored
13 years ago
by
Gregory Maxwell
Committed by
Jean-Marc Valin
13 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add prototypes for the _float functions to opus.h.
parent
d9920f34
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/opus.h
+20
-0
20 additions, 0 deletions
src/opus.h
with
20 additions
and
0 deletions
src/opus.h
+
20
−
0
View file @
06677d73
...
...
@@ -200,6 +200,15 @@ OPUS_EXPORT int opus_encode(
int
max_data_bytes
/* Allocated memory for payload; don't use for controlling bitrate */
);
/* Returns length of the data payload (in bytes) */
OPUS_EXPORT
int
opus_encode_float
(
OpusEncoder
*
st
,
/* Encoder state */
const
float
*
pcm
,
/* Input signal (interleaved if 2 channels). length is frame_size*channels 0dbFS range of +/-1.0*/
int
frame_size
,
/* Number of samples per frame of input signal */
unsigned
char
*
data
,
/* Output payload (no more than max_data_bytes long) */
int
max_data_bytes
/* Allocated memory for payload; don't use for controlling bitrate */
);
OPUS_EXPORT
void
opus_encoder_destroy
(
OpusEncoder
*
st
);
OPUS_EXPORT
int
opus_encoder_ctl
(
OpusEncoder
*
st
,
int
request
,
...);
...
...
@@ -225,6 +234,17 @@ OPUS_EXPORT int opus_decode(
/* decoded. If no such data is available the frame is decoded as if it were lost. */
);
/* Returns the number of samples decoded or a negative error code */
OPUS_EXPORT
int
opus_decode_float
(
OpusDecoder
*
st
,
/* Decoder state */
const
unsigned
char
*
data
,
/* Input payload. Use a NULL pointer to indicate packet loss */
int
len
,
/* Number of bytes in payload */
float
*
pcm
,
/* Output signal (interleaved if 2 channels). length is frame_size*channels 0dbFS range of -/+1.0*/
int
frame_size
,
/* Number of samples per frame of input signal */
int
decode_fec
/* Flag (0/1) to request that any in-band forward error correction data be */
/* decoded. If no such data is available the frame is decoded as if it were lost. */
);
OPUS_EXPORT
int
opus_decoder_ctl
(
OpusDecoder
*
st
,
int
request
,
...);
OPUS_EXPORT
void
opus_decoder_destroy
(
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