Received: from eggs.gnu.org ([208.118.235.92]:35572) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sq61G-0007yJ-Nc for qemu-devel@nongnu.org; Sat, 14 Jul 2012 13:20:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sq61F-000304-IW for qemu-devel@nongnu.org; Sat, 14 Jul 2012 13:20:38 -0400 Received: from fe02x03-cgp.akado.ru ([77.232.31.165]:64494 helo=akado.ru) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sq61F-0002zL-BY for qemu-devel@nongnu.org; Sat, 14 Jul 2012 13:20:37 -0400 Date: Sat, 14 Jul 2012 21:20:32 +0400 (MSK) From: malc In-Reply-To: <5001A805.8020403@g-b.net> Message-ID: References: <5000D6CE.80407@g-b.net> <50010582.8020004@g-b.net> <50016C32.6000906@g-b.net> <5001A805.8020403@g-b.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [Qemu-devel] QEMU VNC Audio - All audio data null List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: agraham Cc: qemu-devel@nongnu.org On Sat, 14 Jul 2012, agraham wrote: > On 07/14/2012 01:55 PM, agraham wrote: > > On 07/14/2012 11:44 AM, malc wrote: > > > On Sat, 14 Jul 2012, agraham wrote: [..snip.]] > > > > I've just rebuilt QEMU 1.0 (and all of its dependencies) and it has > > > > the same > > > > problem (zero bytes), so some incompatibility was introduced between > > > > 0.15.1 > > > > and 1.1.0. > > > > > > > > Anyone got any clues ? > > > > > > Please try to bisect the issue. > > > > > [..snip..] > > I cannot seem to get any further trying to find the source of this issue, > except to say that QEMU Audio over VNC used to work in QEMU 0.13 until about > QEMU 15.1 then it appears to have stopped working as described above. As i said, try bisecting, doesn't involce too many brainwaves only raw machine power. FWIW i just built a fresh checkout and it works for me with my own client... > > My VNC client is written in perl (along with Perl-SDL) from scratch, I wrote > it because I could not find a client that implemented the QEMU VNC protocol > extensions. > > Line 4 above is output from the following code: > > sub _QEMU_Audio_Data () { > > my $self=shift; > my $sound=$self->{sound_server}; > > my $socket = $self->{socket}; > $socket->read( $sound->{len}, 4 ) || return ($self->_SetError('unexpected > end of data')); > $sound->{bytes_read}=$socket->read( $sound->{_audio_buff}, (unpack 'N', > $sound->{len}),$sound->{_audio_offset}) || return > ($self->_SetError('unexpected end of data')); > > # # For debugging > my @data=unpack 'C*',$sound->{_audio_buff}; > $self->DEBUG ($DB_SOUND,"Received _QEMU_Audio_Data @data"); > > $sound->sound_play_data($self->{sound_ctrl}); > } > > My application does not use Libvirt or Spice and relies on this QEMU feature, > I'm hoping that it will not get deprecated because it works fantastically and > is very lightweight. > > Tracking down and fixing this would very much be appreciated. > > Albert > -- mailto:av1474@comtv.ru