I mean from the headphone jack, not a usb headset. On Nov 6, 2010, at 1:52 PM, Alexei Kuznetsov wrote: > Now I can reproduce it. > > So, here I'm using my app linked against pjproject-1.8.5 build with > CoreAudio support. I have a Plantronics USB headset and headphones. > When I'm on a call and I'm using standard sound output (computer > speakers or headphones), and then I'm plugging or unplugging > headphones, I'm getting underflows and assertion: > > 21:40:29.976 ec0x1159a2ee0 Underflow, buf_cnt=0, will generate 1 frame > 21:40:29.998 ec0x1159a2ee0 Underflow, buf_cnt=0, will generate 1 frame > 21:40:30.019 ec0x1159a2ee0 Underflow, buf_cnt=0, will generate 1 frame > Assertion failed: (thread->signature1 != 0xDEAFBEEF || > thread->signature2 != 0xDEADC0DE || (thread->thread == > pthread_self())), function pj_thread_register, file > ../src/pj/os_core_unix.c, line 403. > > But when I'm on a call and I'm using a USB headset, then I'm switching > to the standard output, and then I'm plugging or unplugging > headphones, everything is fine. There is no assertion and the sound is > being transfered to the speakers or headphones. > > Alexei -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 4657 bytes Desc: not available URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20101106/26502286/attachment.p7s>