/* $Id$ */
#include "stdafx.h"
#include "openttd.h"
#include "driver.h"
#include "mixer.h"
#include "sdl.h"
#include "sound/sdl_s.h"
#include "../stdafx.h"
#ifdef WITH_SDL
#include "../openttd.h"
#include "../driver.h"
#include "../mixer.h"
#include "../sdl.h"
#include "sdl_s.h"
#include <SDL.h>
static void CDECL fill_sound_buffer(void *userdata, Uint8 *stream, int len)
{
MxMixSamples(_mixer, stream, len / 4);
}
static const char *SdlSoundStart(const char * const *parm)
SDL_AudioSpec spec;
const char *s = SdlOpen(SDL_INIT_AUDIO);
@@ -31,12 +34,14 @@ static const char *SdlSoundStart(const c
static void SdlSoundStop(void)
SDL_CALL SDL_CloseAudio();
SdlClose(SDL_INIT_AUDIO);
const HalSoundDriver _sdl_sound_driver = {
SdlSoundStart,
SdlSoundStop,
};
#endif