Hi All,
De: qemu-devel-bounces+iosglpgc=teleline.es@nongnu.org [mailto:qemu-devel-bounces+iosglpgc=teleline.es@nongnu.org] En nombre de Darryl Dixon
Enviado el: viernes, 13 de agosto de 2004 10:08
Para: qemu-devel@nongnu.org
Asunto: Re: [Qemu-devel] Audio
Found the problem (or at least, found the area that it's in); it's tied to the oss driver used for this laptop in the 2.6 kernel. I went back to a 2.4 series kernel and the sound is perfect, but, of course, the emulation for qemu is now ~much~ slower *sighs* (I didn't realise just how much of a performance boost 2.6 was giving me!). Ah well, can't have everything, can we? :) Alsa sound works perfectly in 2.6, but myself not really understanding the audio code in qemu at all and not being particularly familiar with alsa I'm afraid that I'm not the person to try coding up an output driver for it... :-/ *looks around hopefully* ;)
D
On Fri, 2004-08-13 at 17:05, Darryl Dixon wrote:Malc,
Definitely seems to be something wrong with my setup; with QEMU_AUDIO_DRV set to either oss or sdl I get no output, but if it's set to wav the qemu.wav file is generated correctly and upon playback contains the correct sounds...
Cheers,
D
On Fri, 2004-08-13 at 16:53, Darryl Dixon wrote:Hi Malc,http://www.boblycat.org/~malc/code/patches/qemu/ you will find > latest(7th) audio patch. > > If you are using Win98 guest make sure that 16bit DMA for SoundBlaster is > set to 5. > > There might be regressions since code was changed heavily to accomodate > different/multiple sound cards (none are included in this patch, hopefully > that would change soon) > > Three backends are included, they can be selected via environment > variable, i.e.: > > QEMU_AUDIO_DRV=oss|sdl|wav > > WAV driver will produce `qemu.wav' in current working directory. _______________________________________________ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel
No luck for me; Win98 guest 'sees' the card OK now (patch applied to latest snapshot) but no sound arrives on the host from the act of playing a sound in the guest :( Perhaps something odd on my setup? As a side note, applying the patch appears to break the compile for the ppc target in ppc-softmmu/:
g++ -Wall -O2 -g -fno-strict-aliasing -fomit-frame-pointer -I. -I/opt/src/qemu-snapshot-2004-08-12_23/target-ppc -I/opt/src/qemu-snapshot-2004-08-12_23 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/opt/src/qemu-snapshot-2004-08-12_23/slirp -c -o mixeng.o /opt/src/qemu-snapshot-2004-08-12_23/mixeng.cc
In file included from /opt/src/qemu-snapshot-2004-08-12_23/vl.h:71,
from /opt/src/qemu-snapshot-2004-08-12_23/mixeng.cc:29:
/opt/src/qemu-snapshot-2004-08-12_23/target-ppc/cpu.h: In function `int32_t
s_ext8(unsigned char)':
/opt/src/qemu-snapshot-2004-08-12_23/target-ppc/cpu.h:33: error: invalid
conversion from `uint8_t*' to `int8_t*'
/opt/src/qemu-snapshot-2004-08-12_23/target-ppc/cpu.h: In function `int32_t
s_ext16(short unsigned int)':
/opt/src/qemu-snapshot-2004-08-12_23/target-ppc/cpu.h:41: error: invalid
conversion from `uint16_t*' to `int16_t*'
In file included from /opt/src/qemu-snapshot-2004-08-12_23/target-ppc/cpu.h:213,
from /opt/src/qemu-snapshot-2004-08-12_23/vl.h:71,
from /opt/src/qemu-snapshot-2004-08-12_23/mixeng.cc:29:
/opt/src/qemu-snapshot-2004-08-12_23/cpu-all.h: In function `uint64_t
ldq_raw(void*)':
/opt/src/qemu-snapshot-2004-08-12_23/cpu-all.h:355: error: pointer of type
`void *' used in arithmetic
/opt/src/qemu-snapshot-2004-08-12_23/cpu-all.h: In function `void
stq_raw(void*, long long unsigned int)':
/opt/src/qemu-snapshot-2004-08-12_23/cpu-all.h:392: error: pointer of type
`void *' used in arithmetic
/opt/src/qemu-snapshot-2004-08-12_23/cpu-all.h: In function `double
ldfq_raw(void*)':
/opt/src/qemu-snapshot-2004-08-12_23/cpu-all.h:421: error: pointer of type
`void *' used in arithmetic
/opt/src/qemu-snapshot-2004-08-12_23/cpu-all.h: In function `void
stfq_raw(void*, double)':
/opt/src/qemu-snapshot-2004-08-12_23/cpu-all.h:430: error: pointer of type
`void *' used in arithmetic
/opt/src/qemu-snapshot-2004-08-12_23/mixeng.cc: In function `void*
st_rate_start(int, int)':
/opt/src/qemu-snapshot-2004-08-12_23/mixeng.cc:224: warning: unused variable `
uint32_t incr'
/opt/src/qemu-snapshot-2004-08-12_23/mixeng.cc: In function `void
st_rate_flow(void*, st_sample_t*, st_sample_t*, int*, int*)':
/opt/src/qemu-snapshot-2004-08-12_23/mixeng.cc:261: warning: unused variable `
uint32_t tmp'
make[1]: *** [mixeng.o] Error 1
make[1]: Leaving directory `/opt/src/qemu-snapshot-2004-08-12_23/ppc-softmmu'
make: *** [all] Error 1
Thanks heaps for all your hard work,
D
On Fri, 2004-08-13 at 09:33, Joe Menola wrote:Applying this patch and manually setting Win98 DMA to 5 has my sound worrking in both 98 and XP. Thanks a heap for your efforts, Malc. -jm On Thu August 12 2004 10:43 am, malc wrote: > Hello, > > At
Darryl Dixon (RHCE, MCSE, MCSA)
Unix Systems Administrator
Oxygen Business Solutions
Phone + 64 9 633 0589
Mobile + 64 272 839 038
www.oxygenforbusiness.com
_______________________________________________ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel
-- Darryl Dixon <esrever_otua@pythonhacker.is-a-geek.net> |
_______________________________________________ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel
-- Darryl Dixon <esrever_otua@pythonhacker.is-a-geek.net> |