My Project
Loading...
Searching...
No Matches
loudness.h
1/*
2 * OpenTyrian: A modern cross-platform port of Tyrian
3 * Copyright (C) 2007-2009 The OpenTyrian Development Team
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 */
19#ifndef LOUDNESS_H
20#define LOUDNESS_H
21
22#include "opentyr.h"
23#include "opl.h"
24
25#include "SDL.h"
26
27extern int audioSampleRate;
28
29extern unsigned int song_playing;
30
31extern bool audio_disabled, music_disabled, samples_disabled;
32
33bool init_audio(void);
34void deinit_audio(void);
35
36void load_music(void);
37void play_song(unsigned int song_num);
38void restart_song(void);
39void stop_song(void);
40void fade_song(void);
41
42void set_volume(Uint8 musicVolume, Uint8 sampleVolume);
43
44void multiSamplePlay(const Sint16 *samples, size_t sampleCount, Uint8 chan, Uint8 vol);
45
46#endif /* LOUDNESS_H */