<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class=""><blockquote type="cite" class="">It's true that when the server processes the "list cards" command from<br class="">pactl, packets to/from parec/pacat are not processed during time, but<br class="">sending the card information shouldn't take a long time, so it sounds<br class="">strange that you'd observe audio drop-outs. Does your application<br class="">perhaps itself stop processing the audio to/from pacat/parec while it's<br class="">running pactl?<br class=""></blockquote></div><div class=""><br class=""></div><div class="">The problem which I have is audio stops only while pactl is running.</div><div class="">Audio is gradually lagging behind.I mean audio don't drop-out.</div><div class=""><br class=""></div><div class="">Audio stream seems to be delayed every time calling pactl.</div><div class="">My application calls pactl per three seconds.The process time for pactl</div><div class=""> is not so log time. But process time seems to be accumulated by calling pactl.</div><div class=""><br class=""></div><div class=""><div class=""><div class="">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">Best Regards,</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">Shinnosuke Suzuki</div>
</div>
<div><br class=""><blockquote type="cite" class=""><div class="">2018/05/01 17:33、Tanu Kaskinen <<a href="mailto:tanuk@iki.fi" class="">tanuk@iki.fi</a>>のメール:</div><br class="Apple-interchange-newline"><div class=""><div class="">On Tue, 2018-05-01 at 10:00 +0900, Shinnosuke Suzuki wrote:<br class=""><blockquote type="cite" class="">Hi,<br class=""><br class=""><blockquote type="cite" class="">Thank you for your advice.<br class="">I would like to use libpulse, but I couldn’t make it properly.<br class="">So I use parec/pacat command.<br class="">I'll get information from “pactl list cards”.<br class=""></blockquote><br class="">I could get status for bluetooth headset connection with pactl.<br class="">But pactl command seems to use exclusion control, when I use pact/parec to send/recv voice packet, <br class="">pactl command stops voice packet of pact/parec only while executing pactl command.<br class="">I confirmed parec pact and pactl with trace-cmd.<br class=""></blockquote><br class="">It's true that when the server processes the "list cards" command from<br class="">pactl, packets to/from parec/pacat are not processed during time, but<br class="">sending the card information shouldn't take a long time, so it sounds<br class="">strange that you'd observe audio drop-outs. Does your application<br class="">perhaps itself stop processing the audio to/from pacat/parec while it's<br class="">running pactl?<br class=""><br class="">What latency parameters do you give to parec and pacat? If you increase<br class="">the latency, does that get rid of the audio drop-outs?<br class=""><br class=""><blockquote type="cite" class="">I would like to implement monitoring bluetooth connection during the voice call with bluetooth headset.<br class="">Is there any solution on this?<br class="">Do I have to use pa_context_get_card_info_list of libpulse?<br class=""></blockquote><br class="">If the problem is at the server side, then using<br class="">pa_context_get_card_info_list() won't help, because that's what pactl<br class="">uses anyway. But I'm not sure if the problem is in the server or in<br class="">your application.<br class=""><br class="">-- <br class="">Tanu<br class=""><br class=""><a href="https://liberapay.com/tanuk" class="">https://liberapay.com/tanuk</a><br class="">https://www.patreon.com/tanuk<br class=""></div></div></blockquote></div><br class=""></div></div></body></html>