<div dir="ltr">15000 was chosen so that 4 channels at 48k and 60ms frames would be 256kbps. Everything else was chosen to match surround allocation as much as possible.</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 7, 2016 at 5:26 PM, Michael Graczyk <span dir="ltr"><<a href="mailto:mgraczyk@google.com" target="_blank">mgraczyk@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Change-Id: I16bd4cd990d8ad5888c9e30016218<wbr>ac25242ecb5<br>
---<br>
src/opus_multistream_encoder.c | 3 ++-<br>
1 file changed, 2 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/src/opus_multistream_<wbr>encoder.c b/src/opus_multistream_<wbr>encoder.c<br>
index 30cafe1..c07132f 100644<br>
--- a/src/opus_multistream_<wbr>encoder.c<br>
+++ b/src/opus_multistream_<wbr>encoder.c<br>
@@ -747,7 +747,8 @@ static void ambisonics_rate_allocation(<br>
<br>
if (st->bitrate_bps==OPUS_AUTO)<br>
{<br>
- total_rate = num_channels * (20000 + st->layout.nb_streams*(Fs+60*<wbr>Fs/frame_size));<br>
+ total_rate = (st->layout.nb_coupled_streams + st->layout.nb_streams) *<br>
+ (Fs+60*Fs/frame_size) + st->layout.nb_streams * 15000;<br>
} else if (st->bitrate_bps==OPUS_<wbr>BITRATE_MAX)<br>
{<br>
total_rate = num_channels * 320000;<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.8.0.rc3.226.g39d4020<br>
<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><br><div>Thanks,</div><div>Michael Graczyk</div></div></div>
</div>