What is samples_per_frame ?

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

 



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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20130122/8bfcfc03/attachment-0001.html>


[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