source: trunk/src/audio.cpp @ 1513

Last change on this file since 1513 was 1513, checked in by sam, 7 years ago

core: replace usage of sin() or std::sin() with lol::sin() where appropriate.

  • Property svn:keywords set to Id
File size: 695 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#if defined USE_SDL_MIXER
16#   include <SDL.h>
17#   include <SDL_mixer.h>
18#endif
19
20#include "core.h"
21
22namespace lol
23{
24
25/*
26 * Public Audio class
27 */
28
29void Audio::Setup(int channels)
30{
31#if defined USE_SDL_MIXER
32    Mix_OpenAudio(22050, AUDIO_S16, channels, 1024);
33#endif
34}
35
36} /* namespace lol */
37
Note: See TracBrowser for help on using the repository browser.