diff options
author | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2018-06-15 16:52:14 -0400 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2018-07-25 22:41:14 -0400 |
commit | 6a74b411ec7fc864a62b179c1e4727176446773b (patch) | |
tree | bff5ab2e4dce1173b55904aa255701ba701e8f4d /src/opus_multistream_encoder.c | |
parent | 1827db6a601e02729475c4618500f49f8b0cbefa (diff) | |
download | libopus-6a74b411ec7fc864a62b179c1e4727176446773b.tar.gz |
Use ambisonics families 2 and 3 instead of 254 and 253
Diffstat (limited to 'src/opus_multistream_encoder.c')
-rw-r--r-- | src/opus_multistream_encoder.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/opus_multistream_encoder.c b/src/opus_multistream_encoder.c index aa48a61b..09a84b2e 100644 --- a/src/opus_multistream_encoder.c +++ b/src/opus_multistream_encoder.c @@ -415,7 +415,7 @@ opus_int32 opus_multistream_surround_encoder_get_size(int channels, int mapping_ nb_streams=channels; nb_coupled_streams=0; #ifdef ENABLE_EXPERIMENTAL_AMBISONICS - } else if (mapping_family==254) + } else if (mapping_family==2) { if (!validate_ambisonics(channels, &nb_streams, &nb_coupled_streams)) return 0; @@ -563,7 +563,7 @@ int opus_multistream_surround_encoder_init( for(i=0;i<channels;i++) mapping[i] = i; #ifdef ENABLE_EXPERIMENTAL_AMBISONICS - } else if (mapping_family==254) + } else if (mapping_family==2) { int i; if (!validate_ambisonics(channels, streams, coupled_streams)) @@ -579,7 +579,7 @@ int opus_multistream_surround_encoder_init( if (channels>2 && mapping_family==1) { mapping_type = MAPPING_TYPE_SURROUND; #ifdef ENABLE_EXPERIMENTAL_AMBISONICS - } else if (mapping_family==254) + } else if (mapping_family==2) { mapping_type = MAPPING_TYPE_AMBISONICS; #endif |