Using Memory/Buffer-based Capture Port

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

 



Hi Mandar Joshi,

The mem capture 'is' a sink port. If you don't want to access the
record buffer directly, just create a mem player, which 'is' a source
port, for the same buffer after the eof cb called.

BR,
nanang


On Thu, Oct 6, 2011 at 1:49 PM, Mandar Joshi <emailmandar at gmail.com> wrote:
> Hello,
>
> I need to record data received on a pjmedia port and analyze it.
> To do this, I'm sending a single frequency (3000 Hz) generated using
> pjmedia_tonegen_create. I am able to hear this tone at the other end.
> To capture this data, I'm using a Memory/Buffer-based Capture Port.
>
> The callback set using pjmedia_mem_capture_set_eof_cb, is called but doing
> pjmedia_port_get_frame in it gives me
> frame->size=0 and frame->type=PJMEDIA_FRAME_TYPE_NONE.
>
> I'm using PJSIP 2.0-alpha. Looking at
> pjproject-2/pjmedia/src/pjmedia/mem_capture.c, line 200, in the function
> rec_get_frame, it seems that this will always be the case since it does
> frame->size = 0;
> frame->type = PJMEDIA_FRAME_TYPE_NONE;
>
> Am I missing something?
>
> -Mandar Joshi
>
> _______________________________________________
> 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