What is samples_per_frame ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Khoa Pham,

Thanks for spotting this, I just fixed the calculation in r4328
(https://trac.pjsip.org/repos/changeset/4328).

Regards,
Ming

On Tue, Jan 22, 2013 at 7:05 PM, Khoa Pham <onmyway133 at gmail.com> wrote:
> Hi all,
>
> In pjmedia-codec/silk.c, the struct silk_private contains the field
> "samples_per_frame", what is that? Is that the number of sample per frame?
>
> If yes, this code in silk_codec_open() in silk.c does not make sense
>
> silk->samples_per_frame = attr->setting.frm_per_pkt * FRAME_LENGTH_MS *
> attr->info.clock_rate / 1000;
>
> Why should we multiply with "frm_per_pkt" ??
>
> --
> Khoa Pham
> HCMC University of Science
> Faculty of Information Technology
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux