<div dir="ltr"><div><div><div><div><div><div><div><div><div><div>Hi,<br><br></div>I don&#39;t understand how works the multi stream api in opus.<br><br></div><div>I need to send two mono streams over network with RTP.<br><br>
</div>I think I&#39;m right when I create an OpusMsDecoder with <br><br>opus_multistream_decoder_create (48000, 2, 2 ,0 ,mapping, NULL)<br><br></div>where mapping is:  unsigned char mapping[2] = {0,1} isn&#39;t it ?<br><br>
</div>Next, i need to encode data which I get from jack (float) so I use <br>opus_multistream_encode_float(enc, data, 480 , encodedData, MAX_DATA)<br><br></div>Then I send it using RTP.<br><br></div>My question is how can I make the opposite in the client. <br>
</div>I created my decoder with <br>m_decoder = opus_multistream_decoder_create (48000, 2, 2 ,0,mapping,NULL) and <br>unsigned char mapping[2] = {0,1};<br><br></div>Currently, I can read my RTP packet from network, and get data from it. I need now to decode opus data to something readable for jack. I do it like that : <br>
opus_multistream_decode_float(m_decoder, data, len, decodedBuffer, BUFLEN, 0);<br><br></div>But how can I know the start of the two packets ?<br><br></div>Thanks for your help,<br>Audric Ackermann<br></div>