I got Ian's 3.6-3 sources to compile for OSS sound on FreeBSD 5.2.1. This is such a hack, I can't believe it worked!
The trick is to hack the configure script under platforms/unix/config. In the OSS test section, I added #define OPEN_SOUND_SYSTEM after #include <sys/soundcard.h> (line 23528).
I then ran this configure command:
../platforms/unix/config/configure --enable-mpg-mmx --without-npsqueak --without-quartz --with-x --enable-vm-sound-OSS
... and Bob's yer uncle.
Jim
Jim Liedeka jliedeka@tds.net wrote:
I got Ian's 3.6-3 sources to compile for OSS sound on FreeBSD 5.2.1. This is such a hack, I can't believe it worked!
The trick is to hack the configure script under platforms/unix/config. In the OSS test section, I added #define OPEN_SOUND_SYSTEM after #include <sys/soundcard.h> (line 23528).
I then ran this configure command:
../platforms/unix/config/configure --enable-mpg-mmx --without-npsqueak --without-quartz --with-x --enable-vm-sound-OSS
... and Bob's yer uncle.
Wow, that is a hack indeed. You might want to post it on the Swiki; I've heard others complain about getting OSS sound to work on BSD.
It is strange that this is necessary. Why would soundcard.h not define this symbol? Is this a bug in the FreeBSD headers? Or is there some other header that can be checked? I know there are a bunch of OSS defines for stuff like audio formats; perhaps those could be checked instead?
-Lex
squeak-dev@lists.squeakfoundation.org