12 #include "../stdafx.h"
18 #include "../safeguards.h"
30 MxMixSamples(stream, len / 4);
39 if (SDL_WasInit(SDL_INIT_EVERYTHING) == 0) {
40 ret_code = SDL_Init(SDL_INIT_AUDIO | SDL_INIT_NOPARACHUTE);
41 }
else if (SDL_WasInit(SDL_INIT_AUDIO) == 0) {
42 ret_code = SDL_InitSubSystem(SDL_INIT_AUDIO);
44 if (ret_code == -1)
return SDL_GetError();
47 spec.format = AUDIO_S16SYS;
51 MxInitialize(spec.freq);
52 SDL_OpenAudio(&spec, &spec);
60 SDL_QuitSubSystem(SDL_INIT_AUDIO);
61 if (SDL_WasInit(SDL_INIT_EVERYTHING) == 0) {