sound/sdl_s.c
changeset 2189 5cdc11ffeaa4
parent 2186 db48cf29b983
child 2977 97c1c76b499a
equal deleted inserted replaced
2188:640a0a5f77ea 2189:5cdc11ffeaa4
     1 /* $Id$ */
     1 /* $Id$ */
     2 
     2 
     3 #include "stdafx.h"
     3 #include "../stdafx.h"
     4 #include "openttd.h"
     4 
     5 #include "driver.h"
     5 #ifdef WITH_SDL
     6 #include "mixer.h"
     6 
     7 #include "sdl.h"
     7 #include "../openttd.h"
     8 #include "sound/sdl_s.h"
     8 #include "../driver.h"
       
     9 #include "../mixer.h"
       
    10 #include "../sdl.h"
       
    11 #include "sdl_s.h"
     9 #include <SDL.h>
    12 #include <SDL.h>
    10 
    13 
    11 static void CDECL fill_sound_buffer(void *userdata, Uint8 *stream, int len)
    14 static void CDECL fill_sound_buffer(void *userdata, Uint8 *stream, int len)
    12 {
    15 {
    13 	MxMixSamples(_mixer, stream, len / 4);
    16 	MxMixSamples(_mixer, stream, len / 4);
    38 
    41 
    39 const HalSoundDriver _sdl_sound_driver = {
    42 const HalSoundDriver _sdl_sound_driver = {
    40 	SdlSoundStart,
    43 	SdlSoundStart,
    41 	SdlSoundStop,
    44 	SdlSoundStop,
    42 };
    45 };
       
    46 
       
    47 #endif