<br><div class="gmail_quote">On Fri, Oct 30, 2009 at 5:49 PM, Lennart Poettering <span dir="ltr"><<a href="mailto:lennart@poettering.net">lennart@poettering.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">I am sorry, but I still have not understood what exactly is happening</div>
that you don't expect to be happening, resp. what exactly is not<br>
happening that you expect to happen.</blockquote><div><br></div><div> I'm not sure how to better explain it.... I open a stream, read from it, write to a pipe, and close the stream. The problem is that pa_simple_read() is returning immediately instead of giving me 640 bytes of PCM.</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Note that synchronization should be done based on latency<br>
measurements, i.e. pa_simple_get_latency(), instead of wishing and<br>
hoping and thinking and praying. ;-)<br>
<div class="im"><br></div></blockquote><div><br></div><div>I'm not sure what this means since i'm really new to audio, but i'm not sure that i'm really that worried about latency. I guess I should be? The protocol i'm working with isn't that concerned as long as we're not talking about more than a half of a second or so.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">
</div>Are you sure you mean padevchooser? That tool is obsolete. Don't use it.<br>
<br>
I'd guess you are actually using pavucontrol. If that runs the latency<br>
of all audio devices is shortened (from the default of 2s to something<br>
near 100ms or so), so that the real-time volume meters it shows are<br>
nicely in sync with what you hear. Lower latency means shorter<br>
buffer. Shorter buffer means you get less data at a time.<br></blockquote><div><br></div><div>Yes, pavucontrol is correct... I guess they just haven't updated the title. This is the process info:</div><div><br></div>
<div>eric 7105 1 1 17:17 ? 00:00:41 pavucontrol</div><div><br></div><div>So it sounds like i have a latency problem... can you point me to the docs to unstupify me :)</div><div><br></div><div>-eric</div>
</div>