]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - snd_sdl.c
add DP_ENT_COLORMOD extension to extension lists
[xonotic/darkplaces.git] / snd_sdl.c
index 5dcaf529bea0a4f489e1d0bca2d63b008cd02a36..38fb20531a896af68c3432414e07191e7e6b1c56 100644 (file)
--- a/snd_sdl.c
+++ b/snd_sdl.c
@@ -17,6 +17,7 @@ along with this program; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
 #include "quakedef.h"
+#include "snd_main.h"
 #include <SDL.h>
 
 /*
@@ -86,7 +87,7 @@ qboolean SNDDMA_Init(void)
 
        // Init the SDL Audio subsystem
        if( SDL_InitSubSystem( SDL_INIT_AUDIO ) ) {
-               Con_SafePrint( "Initializing the SDL Audio subsystem failed!\n" );
+               Con_Print( "Initializing the SDL Audio subsystem failed!\n" );
                return false;
        }
 
@@ -117,13 +118,13 @@ qboolean SNDDMA_Init(void)
        // Init the SDL Audio subsystem
        spec.callback = Buffer_Callback;
        spec.channels = shm->format.channels;
-       spec.format = AUDIO_S16LSB;
+       spec.format = AUDIO_S16SYS;
        spec.freq = shm->format.speed;
        spec.userdata = NULL;
        spec.samples = AUDIO_SDL_SAMPLES; 
        
        if( SDL_OpenAudio( &spec, NULL ) ) {
-               Con_SafePrint( "Failed to open the audio device!\n" );
+               Con_Print( "Failed to open the audio device!\n" );
                Con_DPrintf( 
                        "Audio Specification:\n"
                        "\tChannels  : %i\n"