Adds OPUS_{G,S}ET_FORCE_CHANNELS requests to multistream API

This commit is contained in:
Jean-Marc Valin 2012-10-10 16:03:36 -04:00
parent e9b36c1e38
commit ea7c9869cd

View file

@ -483,6 +483,7 @@ int opus_multistream_encoder_ctl(OpusMSEncoder *st, int request, ...)
case OPUS_GET_LOOKAHEAD_REQUEST:
case OPUS_GET_SAMPLE_RATE_REQUEST:
case OPUS_GET_INBAND_FEC_REQUEST:
case OPUS_GET_FORCE_CHANNELS_REQUEST:
{
OpusEncoder *enc;
/* For int32* GET params, just query the first stream */
@ -522,6 +523,7 @@ int opus_multistream_encoder_ctl(OpusMSEncoder *st, int request, ...)
case OPUS_SET_PACKET_LOSS_PERC_REQUEST:
case OPUS_SET_DTX_REQUEST:
case OPUS_SET_FORCE_MODE_REQUEST:
case OPUS_SET_FORCE_CHANNELS_REQUEST:
{
int s;
/* This works for int32 params */