[pjsip] Audio cutting out

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

 



Michael Broughton wrote:
> Hi Benny,
> 
> I have only had the time to work on fixing the mem player. I will try to 
> do the two wav players this week.
> 
> Let me know if this patch acceptable.

Thanks for the patch, Mike.

There is a problem though (or so I think). With the patch, the 
default behavior has changed to loop the playback instead of playing 
it once, which is fine, as I don't think people will object that 
much and this is consistent with the WAV player default behavior.

  But with the new callback approach, the player won't be able to 
smoothly play the buffer in a loop, as everytime end-of-buffer 
condition is reached, the player will insert silence at the end of a 
frame. In other words, to smoothly playback a buffer in a loop, one 
has to make the buffer size equal to multiple frame size, which is 
difficult IMO.

Thinking about the original problem, I'm wondering if simply 
bzero-ing the remaining frame after EOF is reached will solve the 
problem (I think so!).

cheers,
  -benny




[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