20130313
[gdash.git] / src / sound / sound.hpp
blobffc83c02a5fc7be462f163185fef7579f5598647
1 /*
2 * Copyright (c) 2007-2013, Czirkos Zoltan http://code.google.com/p/gdash/
4 * Permission to use, copy, modify, and distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 #ifndef _HAVE_SDL
17 #define _HAVE_SDL
19 #include "config.h"
21 #include "cave/caverendered.hpp"
23 gboolean gd_sound_init(unsigned int bufsize=44100/25);
24 void gd_sound_close();
26 void gd_sound_off();
27 void gd_sound_play_sounds(SoundWithPos const &sound1, SoundWithPos const &sound2, SoundWithPos const &sound3);
28 void gd_sound_play_bonus_life();
30 void gd_music_play_random();
31 void gd_music_stop();
33 void gd_sound_set_music_volume(int percent);
34 void gd_sound_set_chunk_volumes(int percent);
35 void gd_sound_set_music_volume();
36 void gd_sound_set_chunk_volumes();
38 #endif