SDL1.1.7 and FreeBSD

This is a multi-part message in MIME format.
--------------389ED2AF7A793AD63D5A0C0F
Content-Type: text/plain; charset=koi8-r
Content-Transfer-Encoding: 7bit

Hi Sam,

New SDL release 1.1.7 brought slight trouble with sound on FreeBSD. The problem
is that by default SDL tries to use sun audio driver on FreeBSD, and while it
compiles fine, but is not functional here (FreeBSD’s audio API is OSS clone and
doesn’t support oldest interfaces). Therefore you have to disable sun audio
driver on FreeBSD just like it is done for Linux. Attached patches should show
what I mean (please ignore first two hunks in configure.diff - it’s files from
our cvs repo :->).

Regards,

Maxim

--------------389ED2AF7A793AD63D5A0C0F
Content-Type: text/plain; charset=koi8-r;
name="SDL_audio.c.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename=“SDL_audio.c.diff”

— src/audio/SDL_audio.c 2001/01/03 11:25:01 1.1
+++ src/audio/SDL_audio.c 2001/01/03 11:25:24
@@ -41,7 +41,7 @@

/* Available audio drivers */
static AudioBootStrap *bootstrap[] = {
-#if defined(unix) && !defined(linux)
+#if defined(unix) && !defined(linux) && !defined(FreeBSD)
&AUDIO_bootstrap,
#endif
#ifdef OSS_SUPPORT

--------------389ED2AF7A793AD63D5A0C0F
Content-Type: text/plain; charset=koi8-r;
name="configure.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename=“configure.diff”

— configure.orig Thu Dec 21 07:02:47 2000
+++ configure Wed Jan 3 13:37:14 2001
@@ -630,9 +630,9 @@

libtool versioning

LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
-LT_CURRENT=expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE
+LT_CURRENT=$SDL_INTERFACE_AGE
LT_REVISION=$SDL_INTERFACE_AGE
-LT_AGE=expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE
+LT_AGE=$SDL_INTERFACE_AGE

@@ -3022,7 +3022,7 @@

SDL_CFLAGS=""
-SDL_LIBS="-lSDL"
+SDL_LIBS="-lSDL-1.1"

case “$target” in
@@ -5899,10 +5899,10 @@
cat >>$new <$old

     # Set up files for the audio library
  •    if test x$enable_audio = xyes; then
    
  •        AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun"
    
  •        AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la"
    
  •    fi
    
  •    #if test x$enable_audio = xyes; then
    
  •    #    AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun"
    
  •    #    AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la"
    
  •    #fi
       # Set up files for the joystick library
       # (No joystick support yet)
       if test x$enable_joystick = xyes; then
    

--------------389ED2AF7A793AD63D5A0C0F–

Hi Sam,

New SDL release 1.1.7 brought slight trouble with sound on FreeBSD.

Fixed in CVS, thanks!

-Sam Lantinga, Lead Programmer, Loki Entertainment Software

Sam Lantinga wrote:

Hi Sam,

New SDL release 1.1.7 brought slight trouble with sound on FreeBSD.

Fixed in CVS, thanks!

Thank you for the prompt response!

-Maxim