qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] QEMU VNC Audio - All audio data null


From: agraham
Subject: Re: [Qemu-devel] QEMU VNC Audio - All audio data null
Date: Sat, 14 Jul 2012 23:42:59 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111108 Fedora/3.1.16-1.fc14 Thunderbird/3.1.16

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]