// // Lol Engine // // Copyright: (c) 2010-2011 Sam Hocevar // This program is free software; you can redistribute it and/or // modify it under the terms of the Do What The Fuck You Want To // Public License, Version 2, as published by Sam Hocevar. See // http://www.wtfpl.net/ for more details. // #if defined HAVE_CONFIG_H # include "config.h" #endif #if defined USE_SDL_MIXER # if defined HAVE_SDL_SDL_H # include # else # include # endif # if defined HAVE_SDL_SDL_MIXER_H # include # else # include # endif #endif #include "core.h" namespace lol { /* * Public Audio class */ void Audio::Setup(int channels) { #if defined USE_SDL_MIXER Mix_OpenAudio(22050, AUDIO_S16, channels, 1024); #endif } } /* namespace lol */