Final range coder state now exposed through the ctl() interface
This commit is contained in:
parent
06cee2b1b4
commit
d48277374a
4 changed files with 59 additions and 54 deletions
|
@ -724,10 +724,16 @@ int opus_decoder_ctl(OpusDecoder *st, int request, ...)
|
|||
{
|
||||
case OPUS_GET_BANDWIDTH_REQUEST:
|
||||
{
|
||||
int *value = va_arg(ap, int*);
|
||||
opus_int32 *value = va_arg(ap, opus_int32*);
|
||||
*value = st->bandwidth;
|
||||
}
|
||||
break;
|
||||
case OPUS_GET_FINAL_RANGE_REQUEST:
|
||||
{
|
||||
opus_uint32 *value = va_arg(ap, opus_uint32*);
|
||||
*value = st->rangeFinal;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
fprintf(stderr, "unknown opus_decoder_ctl() request: %d", request);
|
||||
break;
|
||||
|
@ -742,10 +748,6 @@ void opus_decoder_destroy(OpusDecoder *st)
|
|||
free(st);
|
||||
}
|
||||
|
||||
int opus_decoder_get_final_range(OpusDecoder *st)
|
||||
{
|
||||
return st->rangeFinal;
|
||||
}
|
||||
|
||||
int opus_packet_get_bandwidth(const unsigned char *data)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue