Debian Codegraph @

src/io/sound.h

raw symbols SCIP
1
2 /**
3 *
4 * @file sound.h
5 *
6 * Part of the OpenJazz project
7 *
8 * @par History:
9 * - 23rd August 2005: Created OpenJazz.h
10 * - 2nd June 2009: Created sound.h from parts of OpenJazz.h
11 *
12 * @par Licence:
13 * Copyright (c) 2005-2010 AJ Thomson
14 *
15 * OpenJazz is distributed under the terms of
16 * the GNU General Public License, version 2.0
17 *
18 */
19
20 #ifndef OJ_SOUND_H
21 #define OJ_SOUND_Hcxx . . $ `src/io/sound.h:21:9`!
22
23 #include "OpenJazz.h"cxx . . $ `<file>/src/OpenJazz.h`/
24
25 // Constants
26
27 // Sound effects
28
29 namespace SEcxx . . $ SE/ {
30 enum Typecxx . . $ SE/Type# : int {
31 NONEcxx . . $ SE/NONE. = 0,
32 INVULNcxx . . $ SE/INVULN.,
33 MACHGUNcxx . . $ SE/MACHGUN.,
34 BOOMcxx . . $ SE/BOOM.,
35 OWcxx . . $ SE/OW.,
36 YUMcxx . . $ SE/YUM.,
37 FIREcxx . . $ SE/FIRE.,
38 UPLOOPcxx . . $ SE/UPLOOP.,
39 ONEUPcxx . . $ SE/ONEUP.,
40 PHOTONcxx . . $ SE/PHOTON.,
41 WAITcxx . . $ SE/WAIT.,
42 ORBcxx . . $ SE/ORB.,
43 JUMPAcxx . . $ SE/JUMPA.,
44 GODLIKEcxx . . $ SE/GODLIKE.,
45 YEAHOOcxx . . $ SE/YEAHOO.,
46 BIRDYcxx . . $ SE/BIRDY.,
47 FLAMERcxx . . $ SE/FLAMER.,
48 ELECTRcxx . . $ SE/ELECTR.,
49 SPRINGcxx . . $ SE/SPRING.,
50 ROCKETcxx . . $ SE/ROCKET.,
51 STOPcxx . . $ SE/STOP.,
52 BLOCKcxx . . $ SE/BLOCK.,
53 CUSTOM_22cxx . . $ SE/CUSTOM_22.,
54 CUSTOM_23cxx . . $ SE/CUSTOM_23.,
55 CUSTOM_24cxx . . $ SE/CUSTOM_24.,
56 CUSTOM_25cxx . . $ SE/CUSTOM_25.,
57 CUSTOM_26cxx . . $ SE/CUSTOM_26.,
58 CUSTOM_27cxx . . $ SE/CUSTOM_27.,
59 CUSTOM_28cxx . . $ SE/CUSTOM_28.,
60 CUSTOM_29cxx . . $ SE/CUSTOM_29.,
61 CUSTOM_30cxx . . $ SE/CUSTOM_30.,
62 CUSTOM_31cxx . . $ SE/CUSTOM_31.,
63 CUSTOM_32cxx . . $ SE/CUSTOM_32.,
64 MAXcxx . . $ SE/MAX.
65 };
66 };
67
68 #define MAX_VOLUMEcxx . . $ `src/io/sound.h:68:9`! 100
69 enum class MusicTempocxx . . $ MusicTempo# { NORMALcxx . . $ MusicTempo#NORMAL. = 128, FASTcxx . . $ MusicTempo#FAST. = 80 };
70
71
72 // Variables
73
74 #if defined(WIZ) || defined(GP2X)
75 EXTERN int volume;
76 EXTERN int volume_direction;
77 #endif
78
79
80 // Functions
81
82 void openAudiocxx . . $ openAudio(49f6e7a06ebc5aa8).();
83 void closeAudiocxx . . $ closeAudio(49f6e7a06ebc5aa8).();
84 void playMusiccxx . . $ playMusic(90ef5b561fbcb8de).(const char *fileName, bool restart = false);
85 void pauseMusiccxx . . $ pauseMusic(b45ddcbc8423892c).(bool pause);
86 void stopMusiccxx . . $ stopMusic(49f6e7a06ebc5aa8).();
87 int getMusicVolumecxx . . $ getMusicVolume(b126dc7c1de90089).();
88 void setMusicVolumecxx . . $ setMusicVolume(d4f767463ce0a6b3).(int volume);
89 MusicTempocxx . . $ MusicTempo# getMusicTempocxx . . $ getMusicTempo(bf2daa42bddac962).();
90 void setMusicTempocxx . . $ setMusicTempo(e016bf9eab52a1b9).(MusicTempocxx . . $ MusicTempo# tempo);
91 bool loadSoundscxx . . $ loadSounds(c5f7da30cbc0f4e9).(const char *fileName);
92 void resampleSoundcxx . . $ resampleSound(d77166e5f335409f).(int index, const char* name, int rate);
93 void resampleSoundscxx . . $ resampleSounds(49f6e7a06ebc5aa8).();
94 void freeSoundscxx . . $ freeSounds(49f6e7a06ebc5aa8).();
95 void playSoundcxx . . $ playSound(80b838f98135e5b).(SEcxx . . $ SE/::Typecxx . . $ SE/Type# se);
96 bool isSoundPlayingcxx . . $ isSoundPlaying(856ce1a3dc69003b).(SEcxx . . $ SE/::Typecxx . . $ SE/Type# se);
97 int getSoundVolumecxx . . $ getSoundVolume(b126dc7c1de90089).();
98 void setSoundVolumecxx . . $ setSoundVolume(d4f767463ce0a6b3).(int volume);
99
100 inline void playConfirmSoundcxx . . $ playConfirmSound(49f6e7a06ebc5aa8).() { playSoundcxx . . $ playSound(80b838f98135e5b).(SEcxx . . $ SE/::ORBcxx . . $ SE/ORB.); }
101 inline bool isValidSoundIndexcxx . . $ isValidSoundIndex(856ce1a3dc69003b).(SEcxx . . $ SE/::Typecxx . . $ SE/Type# index) { return (index >= SEcxx . . $ SE/::NONEcxx . . $ SE/NONE. && index < SEcxx . . $ SE/::MAXcxx . . $ SE/MAX.); }
102
103 #endif