Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tim-Philipp Müller
Opus
Commits
9a115b9d
Commit
9a115b9d
authored
Mar 08, 2011
by
Jean-Marc Valin
Browse files
Cleanup
parent
f9bc460e
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/opus_encoder.c
View file @
9a115b9d
...
...
@@ -589,6 +589,8 @@ void opus_encoder_ctl(OpusEncoder *st, int request, ...)
case
OPUS_SET_VOICE_RATIO_REQUEST
:
{
int
value
=
va_arg
(
ap
,
int
);
if
(
value
>
100
||
value
<
0
)
return
OPUS_BAD_ARG
;
st
->
voice_ratio
=
value
;
}
break
;
...
...
src/test_opus.c
View file @
9a115b9d
...
...
@@ -233,31 +233,6 @@ int main(int argc, char *argv[])
return
1
;
}
/*if (mode==MODE_SILK_ONLY)
{
if (bandwidth == BANDWIDTH_SUPERWIDEBAND || bandwidth == BANDWIDTH_FULLBAND)
{
fprintf (stderr, "Predictive mode only supports up to wideband\n");
return 1;
}
}
if (mode==MODE_HYBRID)
{
if (bandwidth != BANDWIDTH_SUPERWIDEBAND && bandwidth != BANDWIDTH_FULLBAND)
{
fprintf (stderr, "Hybrid mode only supports superwideband and fullband\n");
return 1;
}
}
if (mode==MODE_CELT_ONLY)
{
if (bandwidth == BANDWIDTH_MEDIUMBAND)
{
fprintf (stderr, "Transform mode does not support mediumband\n");
return 1;
}
}*/
enc
=
opus_encoder_create
(
sampling_rate
,
channels
);
dec
=
opus_decoder_create
(
sampling_rate
,
channels
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment