shithub: duke3d

Download patch

ref: 96c70e5e518e872c6a00084a6ce502e9d22d11e3
parent: 28c20c61296f01bb6224dcf05b8609302bfc23ab
author: unknown <fabien@fabien-PC.(none)>
date: Thu Dec 13 18:16:58 EST 2012

Removed DOS support from sound.c

--- a/Game/src/sounds.c
+++ b/Game/src/sounds.c
@@ -254,35 +254,12 @@
 
 void playmusic(uint8_t  *fn)
 {
-#if PLATFORM_DOS
-    short      fp;
-    int32_t        l;
-
     if(MusicToggle == 0) return;
     if(MusicDevice == NumSoundCards) return;
-    if(eightytwofifty && numplayers > 1) return;
 
-    fp = kopen4load(fn,0);
-
-    if(fp == -1) return;
-
-    l = kfilelength( fp );
-    if(l >= 72000)
-    {
-        kclose(fp);
-        return;
-    }
-
-    kread( fp, MusicPtr, l);
-    kclose( fp );
-    MUSIC_PlaySong( MusicPtr, MUSIC_LoopSong );
-#else
-    if(MusicToggle == 0) return;
-    if(MusicDevice == NumSoundCards) return;
-
     // the SDL_mixer version does more or less this same thing.  --ryan.
     PlayMusic(fn);
-#endif
+
 }
 
 uint8_t  loadsound(unsigned short num)
@@ -316,9 +293,7 @@
     int32_t sndist, cx, cy, cz, j,k;
     short pitche,pitchs,cs;
     int voice, sndang, ca, pitch;
-
-//    if(num != 358) return 0;
-
+	
     if( num >= NUM_SOUNDS ||
         FXDevice == NumSoundCards ||
         ( (soundm[num]&8) && ud.lockout ) ||