source: trunk/src/audio.cpp @ 2183

Last change on this file since 2183 was 2183, checked in by sam, 10 years ago

build: fix the WTFPL site URL in all code comments.

  • Property svn:keywords set to Id
File size: 845 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://www.wtfpl.net/ for more details.
9//
10
11#if defined HAVE_CONFIG_H
12#   include "config.h"
13#endif
14
15#if defined USE_SDL_MIXER
16#   if defined HAVE_SDL_SDL_H
17#      include <SDL/SDL.h>
18#   else
19#      include <SDL.h>
20#   endif
21#   if defined HAVE_SDL_SDL_MIXER_H
22#      include <SDL/SDL_mixer.h>
23#   else
24#      include <SDL_mixer.h>
25#   endif
26#endif
27
28#include "core.h"
29
30namespace lol
31{
32
33/*
34 * Public Audio class
35 */
36
37void Audio::Setup(int channels)
38{
39#if defined USE_SDL_MIXER
40    Mix_OpenAudio(22050, AUDIO_S16, channels, 1024);
41#endif
42}
43
44} /* namespace lol */
45
Note: See TracBrowser for help on using the repository browser.