From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:51673) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SqBCl-00040w-P0 for qemu-devel@nongnu.org; Sat, 14 Jul 2012 18:52:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SqBCk-0000fU-7T for qemu-devel@nongnu.org; Sat, 14 Jul 2012 18:52:51 -0400 Received: from mail1.g-b.net ([64.191.66.247]:58111) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SqBCk-0000fQ-2z for qemu-devel@nongnu.org; Sat, 14 Jul 2012 18:52:50 -0400 Message-ID: <5001F83A.3070102@g-b.net> Date: Sat, 14 Jul 2012 23:52:42 +0100 From: agraham MIME-Version: 1.0 References: <5000D6CE.80407@g-b.net> <50010582.8020004@g-b.net> <50016C32.6000906@g-b.net> <5001A805.8020403@g-b.net> <5001C8D5.30806@g-b.net> <5001EFAE.1020009@g-b.net> <5001F5F3.8080103@g-b.net> In-Reply-To: <5001F5F3.8080103@g-b.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] QEMU VNC Audio - All audio data null Reply-To: agraham@g-b.net List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: agraham@g-b.net Cc: qemu-devel@nongnu.org On 07/14/2012 11:42 PM, agraham wrote: > On 07/14/2012 11:23 PM, malc wrote: >> On Sat, 14 Jul 2012, agraham wrote: >> >>> On 07/14/2012 09:09 PM, malc wrote: >>>> On Sat, 14 Jul 2012, agraham wrote: >>>> >>>>> On 07/14/2012 06:20 PM, malc wrote: >>>>>> 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 got the git version and created a tarbal and used the F17 Spec file >>> to build >>> all the packages - and it worked! >>> >>> So this is now plain stock QEMU (v1.1.50). >>> >>> The problem still exists, exactly the same as previously described, and >>> what I was expecting given my previous testing. >>> >>> I also tried your client, and could not hear anything, the output was as >>> follows: >>> >>> # ./acap >>> 5 >>> server is `"QEMU (windows-xp-1)"' >>> Playing raw data 'stdin' : Signed 16 bit Little Endian, Rate 44100 >>> Hz, Stereo >>> underrun!!! (at least -1342018345912.717 ms long) >>> underrun!!! (at least -1342018345917.003 ms long) >>> underrun!!! (at least -1342018345912.526 ms long) >>> >>> So I modified the acap.sh script to save all received data to a file as >>> follows: >>> >>> #!/bin/sh >>> inputfd=$1 >>> echo "$@" 1>&2 >>> cat> file<&$inputfd >>> #aplay -t raw -c 2 -f S16_LE -r 44100<&$inputfd >>> >>> And this confirms that my original findings. >>> >>> # hexdump -C file >>> 00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >>> |................| >>> * >>> 000bf690 00 00 00 00 00 00 00 00 |........| >>> 000bf698 >>> >>> So now, I am assuming that you did _not_ "hear" actual sound, but >>> assumed it >>> was working because the output of the above script shows >>> data was being received. >>> >>> Can you confirm this? >> >> No, i actually heard the sound playing as expected. Once again try >> bisecting the issue, and also give the configure and qemu invocation >> command lines. >> >> [..snip..] >> > > This is the RPM build output: > > + rpmbuild -bs /root/rpmbuild/SPECS/qemu.spec > warning: Could not canonicalize hostname: fc14-x64-1 > Wrote: /root/rpmbuild/SRPMS/qemu-1.1.0-8.fc14.src.rpm > + rpm -ivh /root/rpmbuild/SRPMS/qemu-1.1.0-8.fc14.src.rpm > qemu ################################################## > + target= > + '[' x86_64 '!=' '' ']' > + target='--target x86_64' > + '[' 1 '!=' 0 ']' > + echo 'Silent Building: qemu-1.1.0-8.fc14' > Silent Building: qemu-1.1.0-8.fc14 > + rpmbuild --rebuild --target x86_64 --nodeps > /root/rpmbuild/SRPMS/qemu-1.1.0-8.fc14.src.rpm > Installing /root/rpmbuild/SRPMS/qemu-1.1.0-8.fc14.src.rpm > Building target platforms: x86_64 > Building for target x86_64 > Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.dOwniU > + umask 022 > + cd /root/rpmbuild/BUILD > + LANG=C > + export LANG > + unset DISPLAY > + cd /root/rpmbuild/BUILD > + rm -rf qemu-kvm-1.1.0 > + /usr/bin/gzip -dc /root/rpmbuild/SOURCES/qemu-kvm-1.1.0.tar.gz > + /bin/tar -xf - > + STATUS=0 > + '[' 0 -ne 0 ']' > + cd qemu-kvm-1.1.0 > + /bin/chmod -Rf a+rX,u+w,g-w,o-w . > + exit 0 > Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.PvPr1E > + umask 022 > + cd /root/rpmbuild/BUILD > + cd qemu-kvm-1.1.0 > + LANG=C > + export LANG > + unset DISPLAY > + buildarch='i386-softmmu x86_64-softmmu arm-softmmu cris-softmmu > m68k-softmmu mips-softmmu mipsel-softmmu mips64-softmmu mips64el-softmmu > sh4-softmmu sh4eb-softmmu i386-linux-user x86_64-linux-user > alpha-linux-user arm-linux-user armeb-linux-user cris-linux-user > m68k-linux-user mips-linux-user mipsel-linux-user ppc-linux-user > ppc64-linux-user ppc64abi32-linux-user sh4-linux-user sh4eb-linux-user > sparc-linux-user sparc64-linux-user sparc32plus-linux-user' > + extraldflags=-Wl,--build-id > + buildldflags=VL_LDFLAGS=-Wl,--build-id > > > [ CONFIGURE LINE ] > > + ./configure --target-list=x86_64-softmmu --prefix=/usr > --sysconfdir=/etc --audio-drv-list=pa,sdl,alsa,oss --disable-strip > '--extra-ldflags=-Wl,--build-id -pie -Wl,-z,relro -Wl,-z,now' > '--extra-cflags=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions > -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIE > -DPIE' --enable-spice --enable-mixemu --enable-trace-backend=dtrace > --disable-werror --disable-xen > > > The eventually results in: > > Wrote: /root/rpmbuild/RPMS/x86_64/qemu-1.1.0-8.fc14.x86_64.rpm > Wrote: /root/rpmbuild/RPMS/x86_64/qemu-kvm-1.1.0-8.fc14.x86_64.rpm > Wrote: /root/rpmbuild/RPMS/x86_64/qemu-img-1.1.0-8.fc14.x86_64.rpm > Wrote: /root/rpmbuild/RPMS/x86_64/qemu-common-1.1.0-8.fc14.x86_64.rpm > Wrote: /root/rpmbuild/RPMS/x86_64/qemu-guest-agent-1.1.0-8.fc14.x86_64.rpm > Wrote: /root/rpmbuild/RPMS/x86_64/qemu-user-1.1.0-8.fc14.x86_64.rpm > Wrote: /root/rpmbuild/RPMS/x86_64/qemu-system-x86-1.1.0-8.fc14.x86_64.rpm > Wrote: /root/rpmbuild/RPMS/x86_64/qemu-system-arm-1.1.0-8.fc14.x86_64.rpm > Wrote: /root/rpmbuild/RPMS/x86_64/qemu-system-mips-1.1.0-8.fc14.x86_64.rpm > Wrote: /root/rpmbuild/RPMS/x86_64/qemu-system-cris-1.1.0-8.fc14.x86_64.rpm > Wrote: /root/rpmbuild/RPMS/x86_64/qemu-system-m68k-1.1.0-8.fc14.x86_64.rpm > Wrote: /root/rpmbuild/RPMS/x86_64/qemu-system-sh4-1.1.0-8.fc14.x86_64.rpm > Wrote: /root/rpmbuild/RPMS/x86_64/qemu-kvm-tools-1.1.0-8.fc14.x86_64.rpm > Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.VZSTHh > > > The QEMU Command: > > /usr/bin/qemu-kvm -usb -no-fd-bootchk -M pc -enable-kvm -m 128 -drive > file=/Storage/Windows/Images/Clone_of_Windows-XP-x32,if=none,media=disk,cache=unsafe,aio=native,snapshot,format=qcow2,id=virtio-blk-pci0 > -device > virtio-blk-pci,addr=0x05,bus=pci.0,drive=virtio-blk-pci0,id=storage0 > -device > virtio-net-pci,mac=52:e0:0a:14:00:03,netdev=hostnet0,addr=0x09,bus=pci.0,id=virtio-net-pci0 > -netdev tap,script=no,downscript=no,id=hostnet0 -usbdevice tablet -vga > std -vnc :1100,lossy -rtc base=localtime,clock=host -global > kvm-pit.lost_tick_policy=discard -chardev > socket,id=monitor,path=windows-xp-1.monitor,server,nowait -mon > chardev=monitor,mode=readline -pidfile windows-xp-1.pid -chroot > /var/mist/chroot -runas qemu -snapshot -S -daemonize -name windows-xp-1 > -uuid cc0df7d6-26e4-4c60-911e-cd107935c6e6 -boot order=c -cpu kvm32 > -soundhw ac97,es1370 > > Replacing es1370 with sb16 or removing it does not change anything. > > Albert Just to confirm, I'm connecting via a TCP INET socket (i.e. server and client are different machines), your acap.ml script also allows unix: sockets, which one are you using?