Wednesday, 15 September 2010

c - Sound device stop working PJSUA - underflow error -


I am using pjsip 2.3 on Linux and I have some problems. The system works fine multiplier days but after the random time, there is no other sound than sound card:

  1. All call handles / hangs normally
  2. files with sound
  3. RTP is correctly sent / received

The log message always displays this message:

Master / Sound Underflow will generate buf_cnt = 276, 1 frame

According to this reference:

PortAudio? Audio Abstract in PJMADA, prints the number of underflow / overflow when the sound device is off. With Pjsua, you need to set the log level to 5 (--app-log-level 5), and when the underflow / overflow data is exited in the application, the console / log will be printed for logging .

Apparently the sound device is off, but I do not have any callback ON_SDN_DVO_O Operation.

How can I control this situation? Are they any callbacks?

My config media is:

  // pjsua_media_config.ec_tail_len pjsua_media_config config media; Pjsua_media_config_default (& amp; configMedia); ConfigMedia.snd_play_latency = 100; ConfigMedia.snd_rec_latency = 100; ConfigMedia.max_media_ports = 100; ConfigMedia.snd_auto_close_time = -1; ConfigMedia.ec_tail_len = 0;  

thanks

master / sound underflow Log does not occur Log When you have the sound device turned off, you will see: pa_dev.c closing & lt; Some tools & gt;: n underflow, n overflow .

Master / sound underflow log is printed, when there is not enough samples in the delay buffer to fill a frame. I have also experienced these logs regarding lost sound


No comments:

Post a Comment