Audio patch
I commited the version 6 of malc's audio patch. Tell me if you see problems. Maybe SDL audio support could be enabled on Mac OS X ?
The version 7 of the patch is not acceptable in its current state as C++ is forbidden in QEMU.
Fabrice.
I would *love* to have SDL audio support for the Mac. Perhaps even a -sdlaudio switch from the command-line?
Another possibility would be using the liboss library (http://liboss.sourceforge.net/), although the project doesn't seem to have had much activity of late. I don't know how viable it is, what it would take to implement, or even if it's robust enough for Qemu, but it might be worth looking at given the limitations of SDL audio that you've mentioned in the past.
- Dave
--
David E. Still
Writer/Producer
TripleCat Productions
http://www.triplecatproductions.com
Quoted 14 lines · Fabrice Bellard
I commited the version 6 of malc's audio patch. Tell me if you see problems. Maybe SDL audio support could be enabled on Mac OS X ?
The version 7 of the patch is not acceptable in its current state as C++ is forbidden in QEMU.
Fabrice.
_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel
Quoted 5 lines · Fabrice Bellard
I commited the version 6 of malc's audio patch. Tell me if you see problems. Maybe SDL audio support could be enabled on Mac OS X ?
The version 7 of the patch is not acceptable in its current state as C++ is forbidden in QEMU.
For the time being (until C++ magically disapears) 7c_aqemu which should in apply cleanly to the current CVS is available at:
http://www.boblycat.org/~malc/code/patches/qemu/
Signature · 1 line
mailto:[email protected]
Quoted 1 line · malc
For the time being (until C++ magically disapears)
A beautiful dream, my friend.
-- John.
Quoted 3 lines · John R. Hogerhuis
Quoted 1 line · malc
For the time being (until C++ magically disapears)
A beautiful dream, my friend.
How about somebody uses AT&T's cfront or SUN's GCC2C to convert those templates in mixeng.cc to plain C? The code won't be pretty, but it will make more sense than handcoding the stuff.
I guess one could also use some smart macros to replace the templates.
Johannes
Moreover mixeng.cc uses floats, which are also forbidden in QEMU, except for CPU emulation :-)
Fabrice.
Quoted 24 lines · Johannes Martin
Quoted 5 lines · John R. Hogerhuis
Quoted 1 line · malc
For the time being (until C++ magically disapears)
A beautiful dream, my friend.
How about somebody uses AT&T's cfront or SUN's GCC2C to convert those templates in mixeng.cc to plain C? The code won't be pretty, but it will make more sense than handcoding the stuff.
I guess one could also use some smart macros to replace the templates.
Johannes
_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel
Quoted 2 lines · Fabrice Bellard
Moreover mixeng.cc uses floats, which are also forbidden in QEMU, except for CPU emulation :-)
I'm no big C++ fan myself, but credit where it's due, changing these to int32_t or whatnot is as simple as changing template argument and clamping code in ONE place - now beat that stupid C99 ;)
Quoted 15 lines
Quoted 13 lines · Johannes Martin
Quoted 5 lines · John R. Hogerhuis
Quoted 1 line · malc
For the time being (until C++ magically disapears)
A beautiful dream, my friend.
How about somebody uses AT&T's cfront or SUN's GCC2C to convert those templates in mixeng.cc to plain C? The code won't be pretty, but it will make more sense than handcoding the stuff.
I guess one could also use some smart macros to replace the templates.
Signature · 1 line
mailto:[email protected]
Hi,
Quoted 7 lines · malc
Quoted 2 lines · Fabrice Bellard
The version 7 of the patch is not acceptable in its current state as C++ is forbidden in QEMU.
For the time being (until C++ magically disapears) 7c_aqemu which should in apply cleanly to the current CVS is available at:
http://www.boblycat.org/~malc/code/patches/qemu/
Please try the attached patch *after* applying 7c_aqemu. It removes the need for template Fabrice's Way(TM). I could not test it yet (sitting on a box without sound card...).
Ciao,
Dscho
Le Mon, 11 Oct 2004 16:52:52 +0200, Johannes Schindelin a écrit :
Quoted 8 lines
Hi,
Quoted 4 lines · malc
Quoted 2 lines · Fabrice Bellard
The version 7 of the patch is not acceptable in its current state as C++ is forbidden in QEMU.
Quoted 7 lines
Quoted 3 lines
For the time being (until C++ magically disapears) 7c_aqemu which should in apply cleanly to the current CVS is available at:
http://www.boblycat.org/~malc/code/patches/qemu/Please try the attached patch *after* applying 7c_aqemu. It removes the need for template Fabrice's Way(TM). I could not test it yet (sitting on a box without sound card...).
Doesn't work for me, windows report the device as working but no sound output.
Hi,
Quoted 2 lines · Ronald
Doesn't work for me, windows report the device as working but no sound output.
Sorry, still could not test, but one thing is for sure: At the beginning of mixeng_template.h, the four definitions of HALFT and HALF: could you change them to
#ifdef SIGNED
#define HALFT (float)(IN_MAX)
#define HALF (float)(IN_MAX)
#else
#define HALFT (float)((IN_MAX)>>1)
#define HALF HALFT
#endif
and test again?
Sorry,
Dscho
Le Tue, 12 Oct 2004 00:06:50 +0200, Johannes Schindelin a écrit :
Quoted 19 lines
Hi,
Quoted 2 lines · Ronald
Doesn't work for me, windows report the device as working but no sound output.
Sorry, still could not test, but one thing is for sure: At the beginning of
mixeng_template.h, the four definitions of HALFT and HALF: could you change them to#ifdef SIGNED
#define HALFT (float)(IN_MAX)
#define HALF (float)(IN_MAX)
#else
#define HALFT (float)((IN_MAX)>>1)
#define HALF HALFT
#endif
Quoted 2 lines
and test again?
Still the same thing: card reported ok but no output at all.
Quoted 2 lines
Sorry,
Dscho
Quoted 19 lines · Ronald
Le Tue, 12 Oct 2004 00:06:50 +0200, Johannes Schindelin a écrit :
Quoted 18 lines
Hi,
Quoted 2 lines · Ronald
Doesn't work for me, windows report the device as working but no sound output.
Sorry, still could not test, but one thing is for sure: At the beginning of
mixeng_template.h, the four definitions of HALFT and HALF: could you change them to#ifdef SIGNED
#define HALFT (float)(IN_MAX)
#define HALF (float)(IN_MAX)
#else
#define HALFT (float)((IN_MAX)>>1)
#define HALF HALFT
#endif
Quoted 6 lines
Quoted 1 line
and test again?
Still the same thing: card reported ok but no output at all.
Quoted 2 lines
Sorry,
Dscho
My soundblaster did the same thing.
Malc had a fix for this...
"If you are using Win98 guest make sure that 16bit DMA for SoundBlaster is set to 5"
HTH-jm