wav-player broken for CCITT u/a-law files in 1.10 (and 2.x) after Ticket #597

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

 



Yes I have some clue...

It seems to have a relation with pjsua_player_set_pos -->
pjmedia_wav_player_port_set_pos.
This one does manipulate the fpos and then does again a fill_buffer().
The problem here is, that fport->data_left (which keeps track how much of
the audio-chain is already readed) is not updated with any file position
manipulation. So any update on file position after a port creation will
decrease the data_left with buffer_size amount (4k).

Having said this... I also think that the 16-bit PCM files do might have
problems with this. But because our application is calling the set_pos only
once, and 16-bit PCM is much bigger, the cut-off was not observed in our
case case.

I'm investigating it further, but still appreciate any input...


With regards,

Eize Slange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20111020/d5daaf80/attachment.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