From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54806) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZSlcz-0000GI-8g for qemu-devel@nongnu.org; Fri, 21 Aug 2015 08:41:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZSlcw-0001UY-40 for qemu-devel@nongnu.org; Fri, 21 Aug 2015 08:41:01 -0400 Received: from mail-wi0-x233.google.com ([2a00:1450:400c:c05::233]:33627) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZSlcv-0001T7-TV for qemu-devel@nongnu.org; Fri, 21 Aug 2015 08:40:58 -0400 Received: by wijp15 with SMTP id p15so18810867wij.0 for ; Fri, 21 Aug 2015 05:40:57 -0700 (PDT) From: "=?UTF-8?B?S8WRdsOhZ8OzIFpvbHTDoW4=?=" References: <48dee3b2d117f59d62cd8e6d4adf735cb2ee2da7.1438884611.git.DirtY.iCE.hu@gmail.com> Message-ID: <55D71C5F.2060604@gmail.com> Date: Fri, 21 Aug 2015 14:41:03 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH 15/25] paaudio: do not create multiple connections to the same server List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?Q?Marc-Andr=c3=a9_Lureau?= Cc: QEMU , Gerd Hoffmann Hi, 2015-08-20 21:38 keltezéssel, Marc-André Lureau írta: [snip] >> + flags = >> + PA_STREAM_INTERPOLATE_TIMING >> +#ifdef PA_STREAM_ADJUST_LATENCY >> + |PA_STREAM_ADJUST_LATENCY >> +#endif >> + |PA_STREAM_AUTO_TIMING_UPDATE; >> + if (dev) { >> + /* don't move the stream if the user specified a sink/source */ >> + flags |= PA_STREAM_DONT_MOVE; > > This is unrelated, and I don't think it's justified, imho user should > be allowed to move the stream later if needed. True, I will remove it from this commit. But not sure if I want to remove it completely, because it looks like pulseaudio has a tendency to automatically move the stream on connect, even if you explicitly specify a sink/source when connecting. (And the problem is that all streams appear under the name qemu in pulseaudio, so once the user moves one stream, pulseaudio will assume all streams subsequently created by qemu are the same on, and move them too. Maybe we shold add some extra options to the pa backend?)