<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Apr 23, 2018 at 1:23 PM, wellington wallace <span dir="ltr"><<a href="mailto:wellingtonwallace@gmail.com" target="_blank">wellingtonwallace@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi PA developers!<div><br></div><div>Something doesn't seem right in the vala binding. The struct "SourceOutputInfo" has a property named "sink_usec" when it should be "source_usec". The same naming error can be seen in the binding docs <a href="https://valadoc.org/libpulse/PulseAudio.SourceOutputInfo.html" target="_blank">https://valadoc.org/<wbr>libpulse/PulseAudio.<wbr>SourceOutputInfo.html</a>. Vala compiler aborts compilation using both "sink_usec" or "source_usec" as the property name.</div><div><br></div><div>Best regards,</div><div> Wellington<span class="gmail-HOEnZb"><font color="#888888"><br clear="all"><div><br></div>-- <br><div class="gmail-m_777665957067189357gmail_signature"><div dir="ltr">Prof.° Wellington Wallace Miguel Melo<br><br><div>CEFET/RJ Uned Nova Iguaçu<br><br></div></div></div>
</font></span></div></div>
</blockquote></div><div class="gmail_extra"><br></div><div class="gmail_extra">The patch below fixes the problem and adds to the vala bindings two missing source_output functions. As I have never sent patches to anyone before I am not sure if this is the proper way. </div><br><div class="gmail_extra">--- libpulse.vapi<span style="white-space:pre"> </span>2018-04-24 01:20:24.857485070 -0300</div><div class="gmail_extra">+++ libpulse_new.vapi<span style="white-space:pre"> </span>2018-04-24 01:28:41.627503634 -0300</div><div class="gmail_extra">@@ -1077,6 +1077,9 @@</div><div class="gmail_extra"> </div><div class="gmail_extra"> public Operation? set_sink_input_volume(uint32 idx, CVolume volume, SuccessCb? cb = null);</div><div class="gmail_extra"> public Operation? set_sink_input_mute(uint32 idx, bool mute, SuccessCb? cb = null);</div><div class="gmail_extra">+ </div><div class="gmail_extra">+ public Operation? set_source_output_volume(uint32 idx, CVolume volume, SuccessCb? cb = null);</div><div class="gmail_extra">+ public Operation? set_source_output_mute(uint32 idx, bool mute, SuccessCb? cb = null);</div><div class="gmail_extra"> </div><div class="gmail_extra"> public Operation? kill_sink_input(uint32 idx, SuccessCb? cb = null);</div><div class="gmail_extra"> </div><div class="gmail_extra">@@ -1404,7 +1407,7 @@</div><div class="gmail_extra"> public SampleSpec sample_spec;</div><div class="gmail_extra"> public ChannelMap channel_map;</div><div class="gmail_extra"> public uint32 buffer_usec;</div><div class="gmail_extra">- public uint32 sink_usec;</div><div class="gmail_extra">+ public uint32 source_usec;</div><div class="gmail_extra"> public string resample_method;</div><div class="gmail_extra"> public string driver;</div><div class="gmail_extra"> public Proplist proplist;</div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Prof.° Wellington Wallace Miguel Melo<br><br><div>CEFET/RJ Uned Nova Iguaçu<br><br></div></div></div>
</div></div>