source: trunk/src/audio.cpp @ 253

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

Add preliminary support for sound samples. Implement click.

  • Property svn:keywords set to Id
File size: 584 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#include <SDL_mixer.h>
18
19#include "core.h"
20
21/*
22 * Public Audio class
23 */
24
25void Audio::Setup(int channels)
26{
27    Mix_OpenAudio(22050, AUDIO_S16, channels, 4096);
28}
29
Note: See TracBrowser for help on using the repository browser.