I need to add the opus audio codec to my TI TMS320C6455 DSP. The chip is configured for big-endian format and the encoded data will be transferred through RTP. Is there an endianness to the current source code? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.xiph.org/pipermail/opus/attachments/20160824/0c590e61/attachment.html>
On 2016-08-24 5:34 AM, David Boles wrote:> I need to add the opus audio codec to my TI TMS320C6455 DSP. The chip is > configured for big-endian format and the encoded data will be > transferred through RTP. Is there an endianness to the current source code?The source code is independent of machine endianness, and the API expects audio data in float or native-endian 16-bit integers, so it should work fine with the chip in big-endian mode. -r
On 24/08/16 08:34 AM, David Boles wrote:> I need to add the opus audio codec to my TI TMS320C6455 DSP. The chip is > configured for big-endian format and the encoded data will be > transferred through RTP. Is there an endianness to the current source code?For RTP use, you should not have deal with any endianness issue. The encoder takes in PCM values as floats or 16-bit ints in the native endianness of your DSP. The output packet is a stream of bytes, so it has no endianness issue. The only endianness issue you may need to be aware of is if you use the opus_demo test program, which inputs and outputs audio as little endian. Cheers, Jean-Marc