source: trunk/src/audio.cpp @ 950

Last change on this file since 950 was 950, checked in by sam, 8 years ago

build: fix Win64 compilation with mingw64, using an updated SDL build.

  • Property svn:keywords set to Id
File size: 713 bytes
Line 
1//
2// Lol Engine
3//
4// Copyright: (c) 2010-2011 Sam Hocevar <sam@hocevar.net>
5//   This program is free software; you can redistribute it and/or
6//   modify it under the terms of the Do What The Fuck You Want To
7//   Public License, Version 2, as published by Sam Hocevar. See
8//   http://sam.zoy.org/projects/COPYING.WTFPL for more details.
9//
10
11#if defined HAVE_CONFIG_H
12#   include "config.h"
13#endif
14
15#include <cmath>
16
17#if defined USE_SDL_MIXER
18#   include <SDL.h>
19#   include <SDL_mixer.h>
20#endif
21
22#include "core.h"
23
24namespace lol
25{
26
27/*
28 * Public Audio class
29 */
30
31void Audio::Setup(int channels)
32{
33#if defined USE_SDL_MIXER
34    Mix_OpenAudio(22050, AUDIO_S16, channels, 1024);
35#endif
36}
37
38} /* namespace lol */
39
Note: See TracBrowser for help on using the repository browser.