All of lore.kernel.org
 help / color / mirror / Atom feed
From: agraham <agraham@g-b.net>
To: agraham@g-b.net
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] QEMU VNC Audio - All audio data null
Date: Sat, 14 Jul 2012 23:52:42 +0100	[thread overview]
Message-ID: <5001F83A.3070102@g-b.net> (raw)
In-Reply-To: <5001F5F3.8080103@g-b.net>

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?

  reply	other threads:[~2012-07-14 22:52 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-14  2:17 [Qemu-devel] QEMU VNC Audio - All audio data null agraham
2012-07-14  5:37 ` agraham
2012-07-14 10:44   ` malc
2012-07-14 12:55     ` agraham
2012-07-14 17:10       ` agraham
2012-07-14 17:20         ` malc
2012-07-14 19:30           ` agraham
2012-07-14 20:09             ` malc
2012-07-14 22:16               ` agraham
2012-07-14 22:23                 ` malc
2012-07-14 22:42                   ` agraham
2012-07-14 22:52                     ` agraham [this message]
2012-07-14 23:23                       ` malc
2012-07-14 23:01                     ` malc
2012-07-14 23:13                       ` agraham
2012-07-14 23:21                         ` malc
2012-07-15 19:22                           ` agraham
2012-07-15 19:48                             ` malc
2012-07-16  0:03                             ` malc
2012-07-16  2:10                               ` agraham
2012-07-16  8:12                                 ` Daniel P. Berrange
2012-07-16 10:56                                   ` agraham
2012-07-16 19:58                                   ` agraham

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5001F83A.3070102@g-b.net \
    --to=agraham@g-b.net \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.