[pjsip] Audio cutting out

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

 



Hi Michael,

I think that would fix it. So yes please do send me the patch if you 
have it. :)

cheers,
  -benny

Michael Broughton wrote:
> Thanks for the reply Benny.
> 
> I have been reading more code and I still don't fully understand why the 
> extra frame(s) is sticking around, but I think I have solved the problem 
> by adding another callback. Here is the idea:
> 
> 1. get_frame grabs the last bit of data from the WAV player buffer and 
> passes it back to the conference bridge. Even though EOF has been 
> reached, no error code is returned at this point.
> 2. get_frame is called again, since EOF has been reached and no more 
> data is left in the buffer, I can now call my player_done callback. It 
> returns a status code to the conference bridge, plus a none-frame.
> 
> I have not thought about the looping playback case yet, but I am 
> wondering what you think of this in general? If I can clean this up a 
> bit, would you be interested in a patch?
> 
> Thanks again,
> 
> Mike





[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