Debian Codegraph @

src/nortsong.h

raw symbols SCIP
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 NORTSONG_H
20 #define NORTSONG_H
21
22 #include "opentyr.h"
23
24 #include "musmast.h"
25 #include "sndmast.h"
26
27 #include "SDL.h"
28
29 extern JE_word frameCountMax;
30
31 extern Sint16 *soundSamples[SOUND_COUNT];
32 extern size_t soundSampleCount[SOUND_COUNT];
33
34 extern JE_word tyrMusicVolume, fxVolume;
35 extern const JE_word fxPlayVol;
36 extern JE_word tempVolume;
37
38 void setDelay(int delay);
39 void setDelay2(int delay);
40 Uint32 getDelayTicks(void);
41 Uint32 getDelayTicks2(void);
42
43 void wait_delay(void);
44 void service_wait_delay(void);
45 void wait_delayorinput(void);
46
47 void setDelaySpeed(Uint16 speed);
48
49 void JE_changeVolume(JE_word *music, int music_delta, JE_word *sample, int sample_delta);
50
51 void loadSndFile(bool xmas);
52 void JE_playSampleNum(JE_byte samplenum);
53
54 #endif /* NORTSONG_H */