Hi,
Thank you very much...You guys are doing really fantastic jobs..
kind regards
Anomadarshi
On Sun, Jun 12, 2016 at 2:23 PM, Jeroen Vreeken <[email protected]> wrote:
> Hi Anomadarshi,
>
> On 06/12/2016 02:11 PM, Anomadarshi Barua Shuvro wrote:
> > Hi Glen,
> > Thank you very much for your reply . I have few confusions. If I would
> > use 8bit resolution per sample , then I would need to change line 3 in
> > the following piece of code , right ? If I would change line 3 to buf
> > = (char*)malloc(nsam*sizeof(char)) , will it work ? I mean do I need
> > to change anything inside of the codec ?
> >
> No, that won't work.
> The codec expects a buffer of shorts. So even if you sample only bytes
> you would still have to convert them to shorts.
>
> This is the prototype of the encode function:
> void codec2_encode(struct CODEC2 *codec2_state, unsigned char * bits,
> short speech_in[]);
>
> It has not changed by your change.
>
> Regards,
> Jeroen
>
>
>
> ------------------------------------------------------------------------------
> What NetFlow Analyzer can do for you? Monitors network bandwidth and
> traffic
> patterns at an interface-level. Reveals which users, apps, and protocols
> are
> consuming the most bandwidth. Provides multi-vendor support for NetFlow,
> J-Flow, sFlow and other flows. Make informed decisions using capacity
> planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
> _______________________________________________
> Freetel-codec2 mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/freetel-codec2
>
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
Freetel-codec2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freetel-codec2