Sorry for the long delay, it looks like your email got trapped in the
spam filter.
You have a few options: you can truncate the samples to 16 bits
(possibly with dithering), or you can convert the samples to
floating-point and use the float API. Either way, you shouldn't have to
modify libopus's source code.
Thomas
On 06/08/2015 06:59 AM, Kazem Baadpie wrote:> Hi
> I am trying to use opus for encoding AES (spdif) stream . I suppose
> that input samples should be 16 bits in opus but samples in AES stream
> can be at most 24 bits. Can opus accepts samples more than 16 bits
> without any modifications in source codes ? If answer is No then "How
> can I modify opus to accept these 24 bits samples ?"
>
> Best Regards
> Kazem Baadpie
>
>
>
> _______________________________________________
> opus mailing list
> opus at xiph.org
> http://lists.xiph.org/mailman/listinfo/opus
>