Yes, when I use audio device what looks like ALSA 1: ... sound is great. But in this case audio device will used directly (hw:X in ALSA terms) so another applications cant play or record anything. My goal was is try to make RAT works correctly with default ALSA device what have software buffers etc.<br>
<br>So if it is known issue what using default device cause sound corruption and not solved yet I will continue learning how RAT and ALSA works. Looks like that all I can do now.<br><br>Some more about how I got almost good sound via default ALSA device.<br>
<br>In source.c in function source_create I change second parameter passed to function pktbuf_create from 8 to 24 to increase max_packets in packet buffer. It increase a delay between sender and recevier a little.<br>Then I create in my home directory  .asoundrc file and put alsa settings what described in my first message: <a href="http://pastebin.mozilla-russia.org/107562">http://pastebin.mozilla-russia.org/107562</a><br>
dsnoop.conf and dmix.conf placed in my Fedora 11, 12 and 13 in /usr/share/alsa/pcm directory. As root I put settings described in my first message directly to this files. There is it: <a href="http://pastebin.mozilla-russia.org/107560">http://pastebin.mozilla-russia.org/107560</a> dsnoop and <a href="http://pastebin.mozilla-russia.org/107561">http://pastebin.mozilla-russia.org/107561</a> dmix.<br>
<br><div class="gmail_quote">2010/11/15 Jason Bell <span dir="ltr">&lt;<a href="mailto:j.bell@cqu.edu.au">j.bell@cqu.edu.au</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div link="blue" vlink="purple" lang="EN-AU"><div><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">As a thought, could you try using a different audio device.</span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">For example, I use “ALSA 1: Chat 150”, rather than the default device “ALSA Default: Chat 150”, as using the Default device causes me corrupt audio.</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Does this have any effect in the issues you are seeing ???</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">I have seen lots of issues using the default device and maybe the work you have done below might suggest a possible fix.  I would be interested to hear more.</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Regards,</span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Jason.</span></p>
</div></div></blockquote></div>